Error satisfies the error interface and prints human-readable errors.
()
| 532 | |
| 533 | // Error satisfies the error interface and prints human-readable errors. |
| 534 | func (e Error) Error() string { |
| 535 | return e.Description |
| 536 | } |
| 537 | |
| 538 | // scriptError creates an Error given a set of arguments. |
| 539 | func scriptError(c ErrorCode, desc string) Error { |
no outgoing calls