diff --git a/CHANGELOG.md b/CHANGELOG.md index 3191a5228..a93aa1c29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## 1.22.9 -* Include argument names when reporting range errors. +* Include argument names when reporting range errors and selector parse errors. ## 1.22.8 diff --git a/lib/src/value.dart b/lib/src/value.dart index 120f3eb5d..8cc0e7930 100644 --- a/lib/src/value.dart +++ b/lib/src/value.dart @@ -120,7 +120,7 @@ abstract class Value implements ext.Value { } on SassFormatException catch (error) { // TODO(nweiz): colorize this if we're running in an environment where // that works. - throw _exception(error.toString()); + throw _exception(error.toString(), name); } } @@ -140,7 +140,7 @@ abstract class Value implements ext.Value { } on SassFormatException catch (error) { // TODO(nweiz): colorize this if we're running in an environment where // that works. - throw _exception(error.toString()); + throw _exception(error.toString(), name); } } @@ -161,7 +161,7 @@ abstract class Value implements ext.Value { } on SassFormatException catch (error) { // TODO(nweiz): colorize this if we're running in an environment where // that works. - throw _exception(error.toString()); + throw _exception(error.toString(), name); } }