avoid confusion by formatting nil errors differently in LogWarning
This commit is contained in:
parent
363826624f
commit
570569be77
|
@ -114,7 +114,7 @@ func LogWarning(err error, extra ...string) {
|
|||
errmsg += extraBit + "\n"
|
||||
}
|
||||
if err == nil {
|
||||
errmsg += "Unknown error"
|
||||
errmsg += "nil error found"
|
||||
} else {
|
||||
errmsg += err.Error()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue