mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
commit
41477f6d88
2
new.go
2
new.go
@ -92,7 +92,7 @@ func createApp(cmd *Command, args []string) int {
|
|||||||
apppath := path.Join(curpath, args[0])
|
apppath := path.Join(curpath, args[0])
|
||||||
|
|
||||||
if _, err := os.Stat(apppath); os.IsNotExist(err) == false {
|
if _, err := os.Stat(apppath); os.IsNotExist(err) == false {
|
||||||
fmt.Printf("[ERRO] Path(%s) has alreay existed\n", apppath)
|
fmt.Printf("[ERRO] Path (%s) already exists\n", apppath)
|
||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user