Error returns the string representation of the error.
()
| 125 | |
| 126 | // Error returns the string representation of the error. |
| 127 | func (e *ParseError) Error() string { |
| 128 | if e.Message != "" { |
| 129 | return fmt.Sprintf("%s at char %d", e.Message, e.Pos+1) |
| 130 | } |
| 131 | return render(e) |
| 132 | } |