minor fix

This commit is contained in:
ZhengYang 2014-08-22 16:04:07 +08:00
parent 8e1a1f5860
commit 8a2cb2ae1c
1 changed files with 1 additions and 5 deletions

View File

@ -680,11 +680,7 @@ func (*PostgresDB) GetGoDataType(sqlType string) (goType string) {
// deleteAndRecreatePaths removes several directories completely
func createPaths(mode byte, paths *MvcPath) {
if (mode & O_MODEL) == O_MODEL {
err := os.Mkdir(paths.ModelPath, 0777)
if err != nil {
ColorLog("[ERRO]", err)
os.Exit(2)
}
os.Mkdir(paths.ModelPath, 0777)
}
if (mode & O_CONTROLLER) == O_CONTROLLER {
os.Mkdir(paths.ControllerPath, 0777)