From 4c0f7650dd5184db1e4400e29cf6fb3433ad6b4a Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Sat, 27 Jul 2019 23:15:51 -0700 Subject: [PATCH] Improve error messages --- cfg/error_messages.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cfg/error_messages.go b/cfg/error_messages.go index b0c5c7d8..55be87c8 100644 --- a/cfg/error_messages.go +++ b/cfg/error_messages.go @@ -19,25 +19,25 @@ func displayError(err error) { } func displayDefaultConfigWriteError(err error) { - fmt.Printf("\n%s Could not write the default configuration.\n", aurora.Red("ERROR:")) + fmt.Printf("\n%s Could not write the default configuration.\n", aurora.Red("ERROR")) fmt.Println() displayError(err) } func displayXdgConfigDirCreateError(err error) { - fmt.Printf("\n%s Could not create the '%s' directory.\n", aurora.Red("ERROR:"), aurora.Yellow(XdgConfigDir)) + fmt.Printf("\n%s Could not create the '%s' directory.\n", aurora.Red("ERROR"), aurora.Yellow(XdgConfigDir)) fmt.Println() displayError(err) } func displayWtfConfigDirCreateError(err error) { - fmt.Printf("\n%s Could not create the '%s' directory.\n", aurora.Red("ERROR:"), aurora.Yellow(WtfConfigDirV2)) + fmt.Printf("\n%s Could not create the '%s' directory.\n", aurora.Red("ERROR"), aurora.Yellow(WtfConfigDirV2)) fmt.Println() displayError(err) } func displayWtfConfigFileLoadError(err error) { - fmt.Printf("\n%s Could not load '%s'.\n", aurora.Red("ERROR:"), aurora.Yellow(WtfConfigFile)) + fmt.Printf("\n%s Could not load '%s'.\n", aurora.Red("ERROR"), aurora.Yellow(WtfConfigFile)) fmt.Println() fmt.Println("This could mean one of two things:") fmt.Println() @@ -48,7 +48,7 @@ func displayWtfConfigFileLoadError(err error) { } func displayWtfCustomConfigFileLoadError(err error) { - fmt.Printf("\n%s Could not load '%s'.\n", aurora.Red("ERROR:"), aurora.Yellow(WtfConfigFile)) + fmt.Printf("\n%s Could not load '%s'.\n", aurora.Red("ERROR"), aurora.Yellow(WtfConfigFile)) fmt.Println() fmt.Println("This could mean one of two things:") fmt.Println()