| Index: runtime/lib/errors_patch.dart
|
| ===================================================================
|
| --- runtime/lib/errors_patch.dart (revision 28974)
|
| +++ runtime/lib/errors_patch.dart (working copy)
|
| @@ -20,7 +20,12 @@
|
| native "AssertionError_throwNew";
|
|
|
| String toString() {
|
| - return "'$_url': Failed assertion: line $_line pos $_column: "
|
| + var columnInfo = "";
|
| + if (_column > 0) {
|
| + // Only add column information if it is valid.
|
| + columnInfo = " pos $_column";
|
| + }
|
| + return "'$_url': Failed assertion: line $_line$columnInfo: "
|
| "'$_failedAssertion' is not true.";
|
| }
|
| final String _failedAssertion;
|
|
|