From db57fa50a0dbea2b849c073baf6b51d0ff6eae99 Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 19 Apr 2017 23:51:12 +0800 Subject: [PATCH] fix #400 --- generate/g_appcode.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/generate/g_appcode.go b/generate/g_appcode.go index c774689..5444a89 100644 --- a/generate/g_appcode.go +++ b/generate/g_appcode.go @@ -965,8 +965,7 @@ func getPackagePath(curpath string) (packpath string) { wgopath := filepath.SplitList(gopath) for _, wg := range wgopath { - wg, _ = filepath.EvalSymlinks(path.Join(wg, "src")) - + wg, _ = filepath.EvalSymlinks(filepath.Join(wg, "src")) if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) { haspath = true appsrcpath = wg @@ -975,7 +974,7 @@ func getPackagePath(curpath string) (packpath string) { } if !haspath { - beeLogger.Log.Fatalf("Cannot generate application code outside of GOPATH '%s'", gopath) + beeLogger.Log.Fatalf("Cannot generate application code outside of GOPATH '%s' compare with CWD '%s'", gopath, curpath) } if curpath == appsrcpath {