Index: sdk/lib/io/crypto.dart |
diff --git a/sdk/lib/io/crypto.dart b/sdk/lib/io/crypto.dart |
index 21d54230f09cad6bc08090b31445d58a4a58ae79..35bd01cc6276de3833f0ebcb8d545df4a2036003 100644 |
--- a/sdk/lib/io/crypto.dart |
+++ b/sdk/lib/io/crypto.dart |
@@ -180,7 +180,7 @@ abstract class _HashBase { |
// Update the hasher with more data. |
add(List<int> data) { |
if (_digestCalled) { |
- throw new ArgumentError( |
+ throw new StateError( |
'Hash update method called after digest was retrieved'); |
} |
_lengthInBytes += data.length; |