From 570569be778a93192964477d83a8e8cc889f63df Mon Sep 17 00:00:00 2001 From: Azareal Date: Wed, 19 Feb 2020 09:21:16 +1000 Subject: [PATCH] avoid confusion by formatting nil errors differently in LogWarning --- common/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/errors.go b/common/errors.go index b6f8f5bd..d3fa9de9 100644 --- a/common/errors.go +++ b/common/errors.go @@ -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() }