Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Check and log autobuild error.
Browse files Browse the repository at this point in the history
  • Loading branch information
nsf committed Jan 27, 2015
1 parent 3109790 commit c31c1e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion declcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,10 @@ func find_global_file(imp string, context build.Context) (string, bool) {
p, err := context.Import(imp, "", build.AllowBinary|build.FindOnly)
if err == nil {
if g_config.Autobuild {
autobuild(p)
err = autobuild(p)
if err != nil && *g_debug {
log.Printf("Autobuild error: %s\n", err)
}
}
if file_exists(p.PkgObj) {
log_found_package_maybe(imp, p.PkgObj)
Expand Down

0 comments on commit c31c1e7

Please sign in to comment.