Skip to content

Commit cd7b4f1

Browse files
authored
Merge pull request #710 from ava-labs/improve-error-messages
Improve AvalancheGo and Plugin Path error messages
2 parents 56e4c83 + a5d45ef commit cd7b4f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/utils.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const (
2222
)
2323

2424
var (
25-
ErrEmptyExecPath = errors.New("avalanche exec is not defined")
26-
ErrNotExists = errors.New("avalanche exec not exists")
27-
ErrNotExistsPlugin = errors.New("plugin exec not exists")
25+
ErrEmptyExecPath = errors.New("the path to the avalanchego executable is not defined. please make sure to either set the AVALANCHEGO_EXEC_PATH environment variable or pass the path with the --avalanchego-path flag")
26+
ErrNotExists = errors.New("the avalanchego executable does not exists at the provided path")
27+
ErrNotExistsPlugin = errors.New("the vm plugin does not exists at the provided path. please check if the plugin path is set correctly in the AVALANCHEGO_PLUGIN_PATH environment variable or the --plugin-dir flag and if the plugin binary is located there")
2828
ErrorNoNetworkIDKey = fmt.Errorf("couldn't find key %q in genesis", genesisNetworkIDKey)
2929
)
3030

0 commit comments

Comments
 (0)