| Index: lib/src/log.dart
|
| diff --git a/lib/src/log.dart b/lib/src/log.dart
|
| index 0b14ab30eb0b2050557c973e18d2ddb75903856c..a90bcadbaf097c660db64595141460f55caab5e6 100644
|
| --- a/lib/src/log.dart
|
| +++ b/lib/src/log.dart
|
| @@ -528,11 +528,14 @@ class _JsonLogger {
|
|
|
| // If the error came from a file, include the path.
|
| if (error is SourceSpanException && error.span.sourceUrl != null) {
|
| - errorJson["path"] = p.fromUri(error.span.sourceUrl);
|
| + // Normalize paths and make them absolute for backwards compatibility with
|
| + // the protocol used by the analyzer.
|
| + errorJson["path"] = p.normalize(p.absolute(
|
| + p.fromUri(error.span.sourceUrl)));
|
| }
|
|
|
| if (error is FileException) {
|
| - errorJson["path"] = error.path;
|
| + errorJson["path"] = p.normalize(p.absolute(error.path));
|
| }
|
|
|
| this.message(errorJson);
|
|
|