Skip to content

Commit 15be59b

Browse files
authored
Make SassFormatException implement SourceSpanFormatException (#891)
1 parent 9635a52 commit 15be59b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.23.8
1+
## 1.24.0
22

33
* **Potentially breaking bug fix:** Members loaded through a nested `@import`
44
are no longer ever accessible outside that nested context.
@@ -7,6 +7,11 @@
77
the same name. The latter name now takes precedence over the former, as per
88
the specification.
99

10+
### Dart API
11+
12+
* `SassFormatException` now implements `SourceSpanFormatException` (and thus
13+
`FormatException`).
14+
1015
## 1.23.7
1116

1217
* No user-visible changes.

lib/src/exception.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ class SassRuntimeException extends SassException {
8686
}
8787

8888
/// An exception thrown when Sass parsing has failed.
89-
class SassFormatException extends SassException {
89+
class SassFormatException extends SassException
90+
implements SourceSpanFormatException {
9091
String get source => span.file.getText(0);
9192

9293
int get offset => span.start.offset;

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.23.8-dev
2+
version: 1.24.0-dev
33
description: A Sass implementation in Dart.
44
author: Sass Team
55
homepage: https://github.com/sass/dart-sass

0 commit comments

Comments
 (0)