summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-16 04:04:27 -0400
committerUnknwon <u@gogs.io>2015-03-16 04:04:27 -0400
commit588f3215c6c4a82c7ad9cbd2cc6a5683d0ca3cc2 (patch)
tree3c62e7d0e50bf3d4046ecf07fd33063a3d8958ac /cmd
parent471b8a18ab73b181b0d6769e2bd95111afd0e9d3 (diff)
downloadgitea-588f3215c6c4a82c7ad9cbd2cc6a5683d0ca3cc2.tar.gz
gitea-588f3215c6c4a82c7ad9cbd2cc6a5683d0ca3cc2.zip
#1040: dashboard no longer accessible when repo is missing
Diffstat (limited to 'cmd')
-rw-r--r--cmd/serve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/serve.go b/cmd/serve.go
index 1138317e29..484060c4c3 100644
--- a/cmd/serve.go
+++ b/cmd/serve.go
@@ -128,7 +128,7 @@ func runServ(c *cli.Context) {
repo, err := models.GetRepositoryByName(repoUser.Id, repoName)
if err != nil {
- if err == models.ErrRepoNotExist {
+ if models.IsErrRepoNotExist(err) {
if user.Id == repoUser.Id || repoUser.IsOwnedBy(user.Id) {
fail("Repository does not exist", "Repository does not exist: %s/%s", repoUser.Name, repoName)
} else {