diff --git a/api/internal/plugins/compiler/compiler.go b/api/internal/plugins/compiler/compiler.go index 21241a480..1ec33bb32 100644 --- a/api/internal/plugins/compiler/compiler.go +++ b/api/internal/plugins/compiler/compiler.go @@ -96,10 +96,12 @@ func (b *Compiler) Compile() error { err, "cannot compile %s:\nSTDERR\n%s\n", b.srcPath(), b.stderr.String()) } - if result := filepath.Join(b.workDir, b.objFile()); !utils.FileExists(result) { - return fmt.Errorf("post compile, cannot find '%s'", result) + result := filepath.Join(b.workDir, b.objFile()) + if utils.FileExists(result) { + log.Printf("Created %s", result) + return nil } - return nil + return fmt.Errorf("post compile, cannot find '%s'", result) } func (b *Compiler) report() { diff --git a/api/internal/plugins/loader/loader.go b/api/internal/plugins/loader/loader.go index aad57ff65..59ad5858e 100644 --- a/api/internal/plugins/loader/loader.go +++ b/api/internal/plugins/loader/loader.go @@ -5,6 +5,7 @@ package loader import ( "fmt" + "log" "os" "path/filepath" "plugin" @@ -207,6 +208,7 @@ func (l *Loader) loadGoPlugin(id resid.ResId) (resmap.Configurable, error) { if !utils.FileExists(absPath) { return nil, fmt.Errorf("cannot find Go object code '%s'", absPath) } + log.Printf("Attempting plugin load from '%s'", absPath) p, err := plugin.Open(absPath) if err != nil { return nil, errors.Wrapf(err, "plugin %s fails to load", absPath)