Skip to content

Commit 7694bdf

Browse files
committed
optimize error message for tuple check
1 parent f3384bf commit 7694bdf

File tree

1 file changed

+1
-1
lines changed
  • lib/Graphics/Toolkit/Color/Space

1 file changed

+1
-1
lines changed

lib/Graphics/Toolkit/Color/Space/Shape.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ sub _precision { # check if precision def is valid and eval (exapand) it
9494

9595
sub in_range { # $vals -- $range, $precision --> $@vals | ~!
9696
my ($self, $values, $range, $precision) = @_;
97-
return 'color value vector in '.$self->basis->space_name.' needs '.$self->basis->count.' values'
97+
return 'color value tuple in '.$self->basis->space_name.' space needs to be ARRAY ref with '.$self->basis->count.' elements'
9898
unless $self->basis->is_value_tuple( $values );
9999
$range = $self->_range( $range );
100100
return "got bad range definition" unless ref $range;

0 commit comments

Comments
 (0)