Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: sdk/lib/io/crypto.dart

Issue 15974005: Fix use of HashException in dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698