Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix outdated env error messages (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored Jul 25, 2022
1 parent dbeb509 commit 946a42a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/saturn-l2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ func mkConfig() (config, error) {
// parse FIL address
filAddr := os.Getenv(FIL_ADDRESS_VAR)
if filAddr == "" {
return config{}, errors.New("No FIL_WALLET_ADDRESS provided. Please set the environment variable.\n")
return config{}, fmt.Errorf("No %s provided. Please set the environment variable.\n", FIL_ADDRESS_VAR)
}
if _, err := address.NewFromString(filAddr); err != nil {
return config{}, fmt.Errorf("Invalid FIL_WALLET_ADDRESS format: %w", err)
return config{}, fmt.Errorf("Invalid %s format: %w", FIL_ADDRESS_VAR, err)
}

// parse max disk space
Expand Down

0 comments on commit 946a42a

Please sign in to comment.