[#47] fixed some doc and code inconsistencies and removed some redundant parentheses

This commit is contained in:
Valley authored and GitHub committed 2022-07-10 09:13:44 +03:00
1 parent d64fbf9011
commit 460c684caa
9 files changed
+17 -17

No files matched your search

+2 -2
View File
@@ -38,13 +38,13 @@ func InitApi(app core.App) (*echo.Echo, error) {
var apiErr *rest.ApiError
switch v := err.(type) {
case (*echo.HTTPError):
case *echo.HTTPError:
if v.Internal != nil && app.IsDebug() {
log.Println(v.Internal)
}
msg := fmt.Sprintf("%v", v.Message)
apiErr = rest.NewApiError(v.Code, msg, v)
case (*rest.ApiError):
case *rest.ApiError:
if app.IsDebug() && v.RawData() != nil {
log.Println(v.RawData())
}