1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 09:50:55 +00:00

Merge pull request #347 from amrfaissal/fix-hproseapp

Handle case when appname argument is missing
This commit is contained in:
Faissal Elamraoui 2016-12-27 09:50:51 +01:00 committed by GitHub
commit f9d0b2f2fc

View File

@ -300,9 +300,8 @@ func init() {
func createhprose(cmd *Command, args []string) int {
output := cmd.Out()
if len(args) < 1 {
ColorLog("[ERRO] Argument [appname] is missing\n")
os.Exit(2)
if len(args) != 1 {
logger.Fatal("Argument [appname] is missing")
}
curpath, _ := os.Getwd()