avoid confusion by formatting nil errors differently in LogWarning

This commit is contained in:
Azareal 2020-02-19 09:21:16 +10:00
parent 363826624f
commit 570569be77
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ func LogWarning(err error, extra ...string) {
errmsg += extraBit + "\n" errmsg += extraBit + "\n"
} }
if err == nil { if err == nil {
errmsg += "Unknown error" errmsg += "nil error found"
} else { } else {
errmsg += err.Error() errmsg += err.Error()
} }