File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -187,11 +187,11 @@ JsError _wrapException(Object exception) {
187
187
var url = exception.span.sourceUrl;
188
188
if (url == null ) {
189
189
file = 'stdin' ;
190
- } else if (url.scheme == 'file' ) {
191
- file = p.fromUri (url);
192
- } else {
193
- file = url.toString ();
194
- }
190
+ } else if (url.scheme == 'file' ) {
191
+ file = p.fromUri (url);
192
+ } else {
193
+ file = url.toString ();
194
+ }
195
195
196
196
return _newRenderError (exception.toString ().replaceFirst ("Error: " , "" ),
197
197
line: exception.span.start.line + 1 ,
Original file line number Diff line number Diff line change @@ -706,14 +706,14 @@ void main() {
706
706
});
707
707
708
708
test ("it occurs in a file with a custom URL scheme" , () {
709
- var error =
710
- renderSyncError (RenderOptions (
711
- data: "@import 'foo:bar'" ,
712
- importer: allowInterop (expectAsync2 ((String _, void __) {
713
- return NodeImporterResult (contents: '@error "oh no";' );
709
+ var error = renderSyncError (RenderOptions (
710
+ data: "@import 'foo:bar'" ,
711
+ importer: allowInterop (expectAsync2 ((String _, void __) {
712
+ return NodeImporterResult (contents: '@error "oh no";' );
714
713
}))));
715
714
716
- expect (error,
715
+ expect (
716
+ error,
717
717
toStringAndMessageEqual ("\" oh no\"\n "
718
718
" ╷\n "
719
719
"1 │ @error \" oh no\" ;\n "
You can’t perform that action at this time.
0 commit comments