diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-05-10 16:22:29 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-05-10 16:22:29 +0200 |
commit | 299b6b6d9fb879c06e675ef240f361348629ff6c (patch) | |
tree | 27909cd54e53d58e612da93e15f1005af86870ec /api/api.go | |
parent | 3b8833854f83f75e3d16c1fdb869937f690e48ea (diff) | |
download | Front-299b6b6d9fb879c06e675ef240f361348629ff6c.tar.gz Front-299b6b6d9fb879c06e675ef240f361348629ff6c.tar.zst Front-299b6b6d9fb879c06e675ef240f361348629ff6c.zip |
Add column 'status' to market_configs.v0.0.9
Diffstat (limited to 'api/api.go')
-rw-r--r-- | api/api.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -58,6 +58,9 @@ func ErrorIs(err error, code ErrorCode) bool { | |||
58 | } | 58 | } |
59 | 59 | ||
60 | func NewInternalError(err error) *Error { | 60 | func NewInternalError(err error) *Error { |
61 | if apiError, ok := err.(*Error); ok { | ||
62 | return apiError | ||
63 | } | ||
61 | return &Error{InternalError, "internal error", err} | 64 | return &Error{InternalError, "internal error", err} |
62 | } | 65 | } |
63 | 66 | ||