1
0
mirror of https://github.com/taigrr/wtf synced 2026-03-29 07:35:16 -07:00

Remove another panic call

This commit is contained in:
Chris Cummer
2019-08-03 12:27:38 -07:00
parent 7b4c77b7da
commit b9d1017754
2 changed files with 9 additions and 2 deletions

View File

@@ -152,7 +152,8 @@ func createWtfConfigDir() {
func createWtfConfigFile() {
filePath, err := CreateFile(WtfConfigFile)
if err != nil {
panic(err)
displayDefaultConfigCreateError(err)
os.Exit(1)
}
// If the file is empty, write to it