Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Mar 28, 2024
1 parent 434be69 commit 573b03c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tim/engine/compilers/html.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ proc unsafeCall(c: var HtmlCompiler, node, fnNode: Node,
add args, (param[0][1..^1], argValue)
else: return # typeCheck returns `typeMismatch`
do:
compileErrorWithArgs(fnReturnVoid, ["?"])
compileErrorWithArgs(fnReturnVoid, [node.identArgs[i].identName])
except Defect:
compileErrorWithArgs(fnExtraArg,
[node.identName, $(params.len), $(node.identArgs.len)])
Expand Down
1 change: 1 addition & 0 deletions src/tim/engine/logging.nim
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type
fnRedefine = "Attempt to redefine function $ [RedefineFunction]"
fnUndeclared = "Undeclared function $ [UndeclaredFunction]"
fnReturnMissingCommand = "Expression $ is of type $ and has to be used or discarded [UseOrDiscard]"
fnReturnVoid = "Function $ has no return type [VoidFunction]"
fnExtraArg = "Extra arguments given. Got $ expected $ [ExtraArgs]"
badIndentation = "Nestable statement requires indentation [BadIndentation]"
invalidContext = "Invalid $ in this context [InvalidContext]"
Expand Down

0 comments on commit 573b03c

Please sign in to comment.