1
0
mirror of https://github.com/beego/bee.git synced 2025-07-11 13:11:02 +00:00

tweak: Exit with message instead of a panic

In case no application is found in GOPATH(s), exit with a friendly
message instead of a panic. Also removed useless else block in watch.go.
This commit is contained in:
Faissal Elamraoui
2016-09-26 20:32:14 +02:00
parent 287af20d1a
commit 56568f4d2c
2 changed files with 5 additions and 6 deletions

View File

@ -240,9 +240,8 @@ func shouldIgnoreFile(filename string) bool {
}
if r.MatchString(filename) {
return true
} else {
continue
}
continue
}
return false
}