Skip to content

Commit 1f290d3

Browse files
committed
fix: show correct error message when expecting strings
fixes #239
1 parent f6e2ac4 commit 1f290d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spark/options/validator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ defmodule Spark.Options.Validator do
245245
%Spark.Options.ValidationError{
246246
key: unquote(key),
247247
message:
248-
"invalid value for #{Spark.Options.render_key(unquote(key))}: expected integer, got: #{inspect(value)}",
248+
"invalid value for #{Spark.Options.render_key(unquote(key))}: expected string, got: #{inspect(value)}",
249249
value: value
250250
}}}
251251
end

0 commit comments

Comments
 (0)