Browse Source

Fix comment

pull/1780/head
Jae Kwon 7 years ago
parent
commit
fb7ec62b29
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/errors.go

+ 1
- 1
common/errors.go View File

@ -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: ...


Loading…
Cancel
Save