Give the dummy Node.js FileSystemException a usable toString() (#407)

Closes #406
This commit is contained in:
Natalie Weizenbaum 2018-07-12 19:26:21 -07:00 committed by GitHub
parent 7a73e15693
commit 02781130b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -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 ## 1.9.1
### Command-Line Interface
* Don't emit ANSI codes to Windows terminals that don't support them. * Don't emit ANSI codes to Windows terminals that don't support them.
* Fix a bug where `--watch` crashed on Mac OS. * Fix a bug where `--watch` crashed on Mac OS.

View File

@ -67,6 +67,8 @@ class FileSystemException {
final String path; final String path;
FileSystemException._(this.message, this.path); FileSystemException._(this.message, this.path);
String toString() => "${p.prettyUri(p.toUri(path))}: $message";
} }
class Stderr { class Stderr {

View File

@ -1,5 +1,5 @@
name: sass name: sass
version: 1.9.1 version: 1.9.2
description: A Sass implementation in Dart. description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org> author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass homepage: https://github.com/sass/dart-sass