Skip to content

Commit

Permalink
Improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
benpate committed Apr 25, 2023
1 parent 8de3e94 commit 8b48e71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ func (factory *Factory) refreshDomain(config config.Config, domainConfig config.
fmt.Println("")
fmt.Println("INCOMPLETE CONFIGURATION...")
fmt.Println("It looks like you're using the starter configuration file, which contains blank")
fmt.Println("values that should be filled in before running.")
fmt.Println("values that should be filled in before running. Please exit the program and edit")
fmt.Println("the configuration")
fmt.Println("")
fmt.Println("Try exiting, then running Emissary with the --setup flag to edit the config file.")
fmt.Println("Run with --init to create a new configuration file")
fmt.Println("Run with --setup to edit the config in the setup console")

return derp.NewInternalError("server.Factory.refreshDomain", "Incomplete Configuration File")
}
Expand Down

0 comments on commit 8b48e71

Please sign in to comment.