()
| 351 | } |
| 352 | |
| 353 | func (e *CompilerSyntaxError) Error() string { |
| 354 | if e.File != nil { |
| 355 | return fmt.Sprintf("SyntaxError: %s at %s", e.Message, e.File.Position(e.Offset)) |
| 356 | } |
| 357 | return fmt.Sprintf("SyntaxError: %s", e.Message) |
| 358 | } |
| 359 | |
| 360 | func (e *CompilerReferenceError) Error() string { |
| 361 | return fmt.Sprintf("ReferenceError: %s", e.Message) |