Skip to content

Commit

Permalink
Fix error code
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaen committed Mar 3, 2024
1 parent 9918f5d commit b70fb0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions klog.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ func main() {
klogFolder := func() app.File {
f, err := determineKlogConfigFolder()
if err != nil {
fail(util.PrettifyAppError(err, false), app.GENERAL_ERROR.ToInt())
fail(util.PrettifyAppError(err, false), app.CONFIG_ERROR.ToInt())
}
return f
}()

configFile := func() string {
c, err := readConfigFile(app.Join(klogFolder, app.CONFIG_FILE_NAME))
if err != nil {
fail(util.PrettifyAppError(err, false), app.GENERAL_ERROR.ToInt())
fail(util.PrettifyAppError(err, false), app.CONFIG_ERROR.ToInt())
}
return c
}()
Expand All @@ -47,7 +47,7 @@ func main() {
app.FromConfigFile{FileContents: configFile},
)
if err != nil {
fail(util.PrettifyAppError(err, false), app.GENERAL_ERROR.ToInt())
fail(util.PrettifyAppError(err, false), app.CONFIG_ERROR.ToInt())
}
return c
}()
Expand Down

0 comments on commit b70fb0f

Please sign in to comment.