diff --git a/.gitignore b/.gitignore index 5148e52..dc3c07f 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,8 @@ jspm_packages # Optional REPL history .node_repl_history + +# Compiled templates +lib/dotjs/*.js + +.DS_Store diff --git a/lib/dot/errorMessage.jst b/lib/dot/errorMessage.jst index a6e69ff..7302201 100644 --- a/lib/dot/errorMessage.jst +++ b/lib/dot/errorMessage.jst @@ -10,17 +10,25 @@ , $i = 'errorMessage_i' + $lvl , $err = 'errorMessage_err' + $lvl , $errors = 'errorMessage_errors' + $lvl + , $nextChar = 'errorMessage_nextChar' + $lvl , $errSchemaPathString = it.util.toQuotedString(it.errSchemaPath); }} var {{=$dataPath}} = (dataPath || '') + {{= it.errorPath }}; {{? typeof $schema == 'string' }} var {{=$i}} = 0; - var {{=$err}}; + var {{=$err}}, {{=$nextChar}}; var {{=$errors}} = undefined; while ({{=$i}}