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

fix outdated env error messages #40

Merged
merged 2 commits into from
Jul 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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