From fb7ec62b2925f48de159aeea73b254ae8c58a738 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Wed, 13 Jun 2018 23:44:38 -0700 Subject: [PATCH] Fix comment --- common/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/errors.go b/common/errors.go index 7259b29d..5c31b896 100644 --- a/common/errors.go +++ b/common/errors.go @@ -188,7 +188,7 @@ Theoretically it could be used to switch on the format string. var err2 error = NewError("another kind of error") ... // Error handling - switch err1.Data().(cmn.FmtError).Format { + switch err1.Data().(cmn.FmtError).Format() { case "invalid username %v": ... case "another kind of error": ... default: ...