Skip to content

Commit

Permalink
chore: show the actual location in "config not found" error (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
danny6167 authored Jun 29, 2024
1 parent ad1ae86 commit 5a15612
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,18 +440,18 @@ in all copies or substantial portions of the Software.%s`), system.Version, time
}

func exitWithConfigurationNotice() {
fmt.Print(colorstring.Color(`
fmt.Printf(colorstring.Color(`
[_red_][white][bold]Error: Configuration File Not Found[reset]
Wings was not able to locate your configuration file, and therefore is not
able to complete its boot process. Please ensure you have copied your instance
configuration file into the default location below.
Default Location: /etc/pterodactyl/config.yml
Default Location: %s
[yellow]This is not a bug with this software. Please do not make a bug report
for this issue, it will be closed.[reset]
`))
`), config.DefaultLocation)
os.Exit(1)
}

0 comments on commit 5a15612

Please sign in to comment.