Skip to content

Commit 0278113

Browse files
authored
Give the dummy Node.js FileSystemException a usable toString() (#407)
Closes #406
1 parent 7a73e15 commit 0278113

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
## 1.9.2
2+
3+
### Node JS API
4+
5+
* Produce more readable filesystem errors, such as when a file doesn't exist.
6+
17
## 1.9.1
28

9+
### Command-Line Interface
10+
311
* Don't emit ANSI codes to Windows terminals that don't support them.
412

513
* Fix a bug where `--watch` crashed on Mac OS.

lib/src/io/node.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class FileSystemException {
6767
final String path;
6868

6969
FileSystemException._(this.message, this.path);
70+
71+
String toString() => "${p.prettyUri(p.toUri(path))}: $message";
7072
}
7173

7274
class Stderr {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.9.1
2+
version: 1.9.2
33
description: A Sass implementation in Dart.
44
author: Dart Team <[email protected]>
55
homepage: https://github.com/sass/dart-sass

0 commit comments

Comments
 (0)