Chromium Code Reviews| Index: sdk/lib/io/crypto.dart |
| diff --git a/sdk/lib/io/crypto.dart b/sdk/lib/io/crypto.dart |
| index ad992dc61a9bbe729fe2703f51d0953232e8d2ef..21d54230f09cad6bc08090b31445d58a4a58ae79 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 HashException( |
| + throw new ArgumentError( |
|
floitsch
2013/05/28 12:28:11
Make it a StateError.
Søren Gjesse
2013/05/28 13:06:11
Done.
|
| 'Hash update method called after digest was retrieved'); |
| } |
| _lengthInBytes += data.length; |