Skip to content

Commit c58fadc

Browse files
committed
change plugin error method
1 parent 647aef9 commit c58fadc

File tree

1 file changed

+1
-1
lines changed
  • plugin_tutorial/go-plugin-example/complex

1 file changed

+1
-1
lines changed

plugin_tutorial/go-plugin-example/complex/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ func getRemotesFunc(arguments interface{}) (reply interface{}, err error) {
6767
}
6868

6969
func getErrorFunc(arguments interface{}) (reply interface{}, err error) {
70-
return nil, plugin.NewPluginError("customErrorCode", errors.New("Some error"))
70+
return nil, plugin.NewError("customErrorCode", errors.New("Some error"))
7171
}

0 commit comments

Comments
 (0)