We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a133f62 commit bdafb60Copy full SHA for bdafb60
utils/utils.go
@@ -6,7 +6,6 @@ import (
6
"fmt"
7
"io/fs"
8
"os"
9
- "path/filepath"
10
"time"
11
12
rpcb "github.com/ava-labs/avalanche-network-runner/rpcpb"
@@ -91,7 +90,7 @@ func CheckPluginPath(pluginExec string) error {
91
90
var err error
92
if _, err = os.Stat(pluginExec); err != nil {
93
if errors.Is(err, fs.ErrNotExist) {
94
- return fmt.Errorf("%s: %w", filepath.Base(pluginExec), ErrNotExistsPlugin)
+ return ErrNotExistsPlugin
95
}
96
return fmt.Errorf("failed to stat plugin exec %q (%w)", pluginExec, err)
97
0 commit comments