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

Unified Diff: runtime/lib/double_patch.dart

Issue 389603002: Add extra information to FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 5 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
Index: runtime/lib/double_patch.dart
diff --git a/runtime/lib/double_patch.dart b/runtime/lib/double_patch.dart
index a239a7523ce6f0b42fa71856c2c83f934846c017..d8e0cbd0c8450825ce4460e4af4e0a60d7291337 100644
--- a/runtime/lib/double_patch.dart
+++ b/runtime/lib/double_patch.dart
@@ -24,7 +24,7 @@ patch class double {
[double onError(String str)]) {
var result = _parse(str);
if (result == null) {
- if (onError == null) throw new FormatException(str);
+ if (onError == null) throw new FormatException("Invalid double", str);
return onError(str);
}
return result;

Powered by Google App Engine
This is Rietveld 408576698