Skip to content

Commit 1dcf100

Browse files
authored
make source accessible (#792)
1 parent f0d4c50 commit 1dcf100

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

experimental/errorsource/error_source.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ func (r Error) Unwrap() error {
2828
return r.err
2929
}
3030

31+
// Source provides the error source
32+
func (r Error) Source() backend.ErrorSource {
33+
return r.source
34+
}
35+
3136
// PluginError will apply the source as plugin
3237
func PluginError(err error, override bool) error {
3338
return SourceError(backend.ErrorSourcePlugin, err, override)

0 commit comments

Comments
 (0)