diff --git a/CHANGELOG.md b/CHANGELOG.md index adf1b4d9..1fcab0ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ +## 1.9.2 + +### Node JS API + +* Produce more readable filesystem errors, such as when a file doesn't exist. + ## 1.9.1 +### Command-Line Interface + * Don't emit ANSI codes to Windows terminals that don't support them. * Fix a bug where `--watch` crashed on Mac OS. diff --git a/lib/src/io/node.dart b/lib/src/io/node.dart index 23b0bf4e..d1378196 100644 --- a/lib/src/io/node.dart +++ b/lib/src/io/node.dart @@ -67,6 +67,8 @@ class FileSystemException { final String path; FileSystemException._(this.message, this.path); + + String toString() => "${p.prettyUri(p.toUri(path))}: $message"; } class Stderr { diff --git a/pubspec.yaml b/pubspec.yaml index 789cd24d..27a72abe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.9.1 +version: 1.9.2 description: A Sass implementation in Dart. author: Dart Team homepage: https://github.com/sass/dart-sass