()
| 17 | } |
| 18 | |
| 19 | func (e *PluginInstallError) Error() string { |
| 20 | prefix := fmt.Sprintf("plugin %q (%s)", e.PluginName, e.ReasonCode) |
| 21 | if e.Reason != "" { |
| 22 | prefix += ": " + e.Reason |
| 23 | } |
| 24 | if e.Cause != nil { |
| 25 | prefix += ": " + e.Cause.Error() |
| 26 | } |
| 27 | return prefix |
| 28 | } |
| 29 | |
| 30 | func (e *PluginInstallError) Unwrap() error { return e.Cause } |
| 31 |
no outgoing calls
no test coverage detected