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:
parent
138b41bf0a
commit
8e9543970a
9 changed files with 43 additions and 26 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue