Error implements the error interface.
()
| 107 | |
| 108 | // Error implements the error interface. |
| 109 | func (d *Definition) Error() string { |
| 110 | if d == nil { |
| 111 | return "" |
| 112 | } |
| 113 | return d.String() |
| 114 | } |
| 115 | |
| 116 | var messageFormatArgument = regexp.MustCompile(`\{[\s]*([a-z0-9_]+)`) |
| 117 |