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

Unified Diff: pkg/yaml/lib/src/model.dart

Issue 342943006: Make YamlException inherit from SpanFormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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: pkg/yaml/lib/src/model.dart
diff --git a/pkg/yaml/lib/src/model.dart b/pkg/yaml/lib/src/model.dart
index f0e839c062ae64c377bbe2bca38dec6e30172018..0973769574a847924a34d6463d4a4e0585224a3a 100644
--- a/pkg/yaml/lib/src/model.dart
+++ b/pkg/yaml/lib/src/model.dart
@@ -208,7 +208,7 @@ class ScalarNode extends Node {
return '"${escapedValue.join()}"';
}
- throw new YamlException('Unknown scalar value: "$value".');
+ throw new YamlException('Unknown scalar value.', span);
}
String toString() => '$tag "$content"';

Powered by Google App Engine
This is Rietveld 408576698