1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-06 05:26:22 -07:00

Remove "Verbosity" config field and rename "DebugMode" to "Verbose" for enabling command line output on errors

This commit is contained in:
Eggbertx 2023-12-27 17:07:33 -08:00
parent 138b41bf0a
commit 8e9543970a
9 changed files with 43 additions and 26 deletions

View file

@ -259,7 +259,7 @@ func sqlVersionError(err error, dbDriver string, query *string) error {
return err
}
}
if config.GetSystemCriticalConfig().DebugMode {
if config.GetSystemCriticalConfig().Verbose {
return fmt.Errorf(UnsupportedSQLVersionMsg+"\nQuery: "+*query, errText)
}
return fmt.Errorf(UnsupportedSQLVersionMsg, errText)

View file

@ -63,7 +63,7 @@ func SetupSQLString(query string, dbConn *GCDB) (string, error) {
}
prepared = strings.Join(arr, "")
case "sqlmock":
if config.GetDebugMode() {
if config.VerboseMode() {
prepared = query
break
}