Skip to content

Commit

Permalink
Clarify channel type error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Oct 6, 2023
1 parent 76ecd61 commit de8f515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/functions/color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,8 @@ Value _parseChannels(String functionName, Value input,
var channelName =
space?.channels[channels.indexOf(channel)].name ?? 'channel';
throw SassScriptException(
'Expected $channelName $channel to be a number.', name);
'Expected $channelName channel to be a number, was $channel.',
name);
}
}

Expand Down

0 comments on commit de8f515

Please sign in to comment.