Skip to content

Commit

Permalink
Include argument names when reporting range errors
Browse files Browse the repository at this point in the history
Closes #771
  • Loading branch information
nex3 committed Jul 25, 2019
1 parent 1d8cec8 commit 8d5e3d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.22.9

* Include argument names when reporting range errors.

## 1.22.8

### JavaScript API
Expand Down
3 changes: 2 additions & 1 deletion lib/src/value/number.dart
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ class SassNumber extends Value implements ext.SassNumber {
var result = fuzzyCheckRange(value, min, max);
if (result != null) return result;
throw _exception(
"Expected $this to be within $min$unitString and $max$unitString.");
"Expected $this to be within $min$unitString and $max$unitString.",
name);
}

bool hasUnit(String unit) =>
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.22.8
version: 1.22.9-dev
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass
Expand Down

0 comments on commit 8d5e3d9

Please sign in to comment.