8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02236e1 commit 947b73bCopy full SHA for 947b73b
engine/api/project.go
@@ -2,6 +2,7 @@ package api
2
3
import (
4
"context"
5
+ "database/sql"
6
"net/http"
7
"regexp"
8
"strings"
@@ -40,6 +41,9 @@ func (api *API) getProjectsHandler() service.Handler {
40
41
//Load the specific user
42
u, err = user.LoadUserWithoutAuth(api.mustDB(), requestedUserName)
43
if err != nil {
44
+ if err == sql.ErrNoRows {
45
+ return sdk.ErrUserNotFound
46
+ }
47
return sdk.WrapError(err, "getProjectsHandler> unable to load user '%s'", requestedUserName)
48
}
49
if err := loadUserPermissions(api.mustDB(), api.Cache, u); err != nil {
0 commit comments