Closed BrunoBonacci closed 1 year ago
Hi @BrunoBonacci the function Var (symbol naming the var) is printed in latest version of malli (0.9.2): https://github.com/metosin/malli/blob/55d4888c15df9f6affb67f34fcdea449a3c11d6d/src/malli/dev/pretty.cljc#L46
Oh nice, I'll try it out.
I've tried with the 0.9.2
version and it works as you said, thanks
sample output
-- Schema Error ------------------------------------------------------------------- Compiler:7194 --
Invalid function arguments:
[1 "2"]
Function Var:
user/plus
Input Schema:
[:cat :int :int]
Errors:
{:in [1], :message "should be an integer", :path [1], :schema :int, :value "2"}
More information:
https://cljdoc.org/d/metosin/malli/CURRENT/doc/function-schemas
----------------------------------------------------------------------------------------------------
using
[metosin/malli "0.8.4"]
see the following repl session
As you can see from the error the function name is not present anywhere, and while this is obvious in this little example, when the error is nested, is incredibly hard to find which function failed the validation.
I think instead of
form-init7954450409628955716:739
the fully qualified function name should be displayed, the name in the previous example is available in the registry.