From 5a1561275420f7ac763b0c208da78c35fa000efa Mon Sep 17 00:00:00 2001 From: Daniel Barton Date: Sun, 30 Jun 2024 02:26:59 +0800 Subject: [PATCH] chore: show the actual location in "config not found" error (#179) --- cmd/root.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 4635d9a4..62620c22 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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) }