Browse Source

Fixed bug for gopm build

pull/103/head
Unknown 11 years ago
parent
commit
c121159086
  1. 1
      doc/walker.go

1
doc/walker.go

@ -119,6 +119,7 @@ func (w *walker) build(srcs []*source, nod *Node) ([]string, error) {
err = nil err = nil
} else if strings.Contains(err.Error(), "expected 'package'") { } else if strings.Contains(err.Error(), "expected 'package'") {
log.Warn("walker: %s", err.Error()) log.Warn("walker: %s", err.Error())
return nil, nil
} else { } else {
log.Error("walker", "Error occurs when check imports:") log.Error("walker", "Error occurs when check imports:")
log.Error("", "\t"+err.Error()) log.Error("", "\t"+err.Error())

Loading…
Cancel
Save