Skip to content

Commit 5a15612

Browse files
authored
chore: show the actual location in "config not found" error (#179)
1 parent ad1ae86 commit 5a15612

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/root.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -440,18 +440,18 @@ in all copies or substantial portions of the Software.%s`), system.Version, time
440440
}
441441

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

0 commit comments

Comments
 (0)