Skip to content

Commit

Permalink
log the error that caused a provider to be unavailable
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Jan 26, 2024
1 parent a62e09b commit a139dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (r *Runtime) handlePluginError(err error, provider *ConnectedProvider) (boo
// Error: Unavailable. Happens when the plugin crashes.
// TODO: try to restart the plugin and reset its connections
provider.Instance.isClosed = true
provider.Instance.err = errors.New("the '" + provider.Instance.Name + "' provider crashed")
provider.Instance.err = errors.New("the '" + provider.Instance.Name + "' provider crashed: " + err.Error())
return false, provider.Instance.err
}
return false, err
Expand Down

0 comments on commit a139dda

Please sign in to comment.