From 04c0f9d7b410afff701118f1f09fe850c148a9da Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 10 Nov 2016 16:51:50 +0800 Subject: [PATCH] output error --- g_docs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g_docs.go b/g_docs.go index 6088781..d7216cd 100644 --- a/g_docs.go +++ b/g_docs.go @@ -110,7 +110,7 @@ func parsePackageFromDir(path string) { }, parser.ParseComments) if err != nil { - ColorLog("[ERRO] the model %s parser.ParseDir error\n", path) + ColorLog("[ERRO] the model %s parser.ParseDir error: %s\n", path, err) os.Exit(1) } for k, v := range folderPkgs { @@ -357,7 +357,7 @@ func analisyscontrollerPkg(localName, pkgpath string) { }, parser.ParseComments) if err != nil { - ColorLog("[ERRO] the %s pkg parser.ParseDir error\n", pkgpath) + ColorLog("[ERRO] the %s pkg parser.ParseDir error: %s\n", pkgpath, err) os.Exit(1) } for _, pkg := range astPkgs {