| Index: sdk/lib/_internal/pub/lib/src/log.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/log.dart b/sdk/lib/_internal/pub/lib/src/log.dart
|
| index 0c2b1267bff779fca9cefabe6c1c1a91e8b9ee8b..6821581033d95c23e2838f1c385acf8cea37dfe3 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/log.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/log.dart
|
| @@ -506,6 +506,15 @@ class _JsonLogger {
|
| errorJson["stackTrace"] = new Chain.forTrace(stackTrace).toString();
|
| }
|
|
|
| + // If the error came from a file, include the path.
|
| + if (error is SpanException && error.span.sourceUrl != null) {
|
| + errorJson["path"] = p.fromUri(error.span.sourceUrl);
|
| + }
|
| +
|
| + if (error is FileException) {
|
| + errorJson["path"] = error.path;
|
| + }
|
| +
|
| this.message(errorJson);
|
| }
|
|
|
|
|