Skip to content

Commit

Permalink
experiment: Use proper error msg on false schema
Browse files Browse the repository at this point in the history
  • Loading branch information
LoisSotoLopez committed Feb 7, 2024
1 parent 8dbb4fd commit 4b9320a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ndto_generator.erl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ generate(Name, Schema) ->
ExtraFuns :: [erl_syntax:syntaxTree()].
is_valid(Prefix, false) ->
FunName = Prefix,
FalseClause = false_clause(Prefix, "Value is false"),
FalseClause = false_clause(Prefix, "Unexpected value for false schema"),
Fun = erl_syntax:function(
erl_syntax:atom(erlang:binary_to_atom(FunName)),
[FalseClause]
Expand Down

0 comments on commit 4b9320a

Please sign in to comment.