mirror of
https://github.com/dnote/dnote
synced 2026-03-15 15:05:51 +01:00
Fix error
This commit is contained in:
parent
5fd65da9c0
commit
ff2ba3c4dc
1 changed files with 3 additions and 1 deletions
|
|
@ -192,7 +192,9 @@ func logError(err error, msg string) {
|
|||
}
|
||||
|
||||
func getStatusCode(err error) int {
|
||||
switch err {
|
||||
rootErr := errors.Cause(err)
|
||||
|
||||
switch rootErr {
|
||||
case app.ErrNotFound:
|
||||
case app.ErrLoginInvalid:
|
||||
return http.StatusNotFound
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue