MarshalText marshals the pluginError into a textual form.
()
| 30 | |
| 31 | // MarshalText marshals the pluginError into a textual form. |
| 32 | func (e *pluginError) MarshalText() (text []byte, err error) { |
| 33 | return []byte(e.cause.Error()), nil |
| 34 | } |
| 35 | |
| 36 | // wrapAsPluginError wraps an error in a pluginError with an |
| 37 | // additional message. |