Skip to content

Commit a310e69

Browse files
committed
chore: Move errors to variables in the compileIdentifier method
1 parent da75398 commit a310e69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/compiler/compile_identifier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (c *Compiler) compileIdentifier(id *ast.Identifier) error {
1919
}
2020

2121
if !hasAddr {
22-
return fmt.Errorf("undefined variable: %s", id.Value)
22+
return fmt.Errorf("%w: %s", errUndefinedVar, id.Value)
2323
}
2424

2525
addrReg := c.incrementRegCounter()

0 commit comments

Comments
 (0)