From d4758121e52ca6f3bcea6378b158714e2db1f9cc Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 5 Dec 2013 19:57:41 -0500 Subject: [PATCH] Fixed bug for gopm build --- doc/walker.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/walker.go b/doc/walker.go index 11e740b4a..a09c4234a 100644 --- a/doc/walker.go +++ b/doc/walker.go @@ -31,6 +31,8 @@ import ( "unicode/utf8" "github.com/Unknwon/com" + + "github.com/gpmgo/gopm/log" ) type sliceWriter struct{ p *[]byte } @@ -118,7 +120,8 @@ func (w *walker) build(srcs []*source, nod *Node) ([]string, error) { if nogo { err = nil } else { - com.ColorLog("[WARN] Error occurs when check imports[ %s ]\n", err) + log.Error("walker", "Error occurs when check imports:") + log.Error("", "\t"+err.Error()) return nil, nil } }