From c1211590867167567624106a6ccffeb755ad8042 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 5 Dec 2013 20:29:32 -0500 Subject: [PATCH] Fixed bug for gopm build --- doc/walker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/walker.go b/doc/walker.go index 28eedd36c..a3ccc3b0d 100644 --- a/doc/walker.go +++ b/doc/walker.go @@ -119,6 +119,7 @@ func (w *walker) build(srcs []*source, nod *Node) ([]string, error) { err = nil } else if strings.Contains(err.Error(), "expected 'package'") { log.Warn("walker: %s", err.Error()) + return nil, nil } else { log.Error("walker", "Error occurs when check imports:") log.Error("", "\t"+err.Error())