Skip to content

Commit

Permalink
Fix join() and append() $separator error messages
Browse files Browse the repository at this point in the history
Closes #738
  • Loading branch information
nex3 committed Jul 3, 2019
1 parent 47e0cfc commit 5ff434d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
passed a string that contains characters that aren't represented as a single
byte in UTF-16.

* Improve the error message for an unknown separator name passed to the `join()`
or `append()` functions.

## 1.22.2

### JavaScript API
Expand Down
4 changes: 2 additions & 2 deletions lib/src/functions/list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ final _join = BuiltInCallable(
separator = ListSeparator.comma;
} else {
throw SassScriptException(
'\$$separator: Must be "space", "comma", or "auto".');
'\$separator: Must be "space", "comma", or "auto".');
}

var bracketed = bracketedParam is SassString && bracketedParam.text == 'auto'
Expand Down Expand Up @@ -91,7 +91,7 @@ final _append =
separator = ListSeparator.comma;
} else {
throw SassScriptException(
'\$$separator: Must be "space", "comma", or "auto".');
'\$separator: Must be "space", "comma", or "auto".');
}

var newList = [...list.asList, value];
Expand Down

0 comments on commit 5ff434d

Please sign in to comment.