Fix errorf formatting

This commit is contained in:
sophia 2021-08-16 17:17:02 -05:00 committed by Paul Hinze
parent 277972f38f
commit f261b9a158
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -10,7 +10,7 @@ import (
"github.com/hashicorp/go-plugin"
"github.com/oklog/run"
"github.com/hashicorp/vagrant-plugin-sdk"
sdk "github.com/hashicorp/vagrant-plugin-sdk"
"github.com/hashicorp/vagrant-plugin-sdk/component"
"github.com/hashicorp/vagrant-plugin-sdk/internal-shared/pluginclient"
)
@ -121,8 +121,7 @@ func (b *Builtin) Factory(name string) PluginRegistration {
}
info, ok := raw.(component.PluginInfo)
if !ok {
return nil, fmt.Errorf("failed to load builgin plugin information interface",
"plugin", name)
return nil, fmt.Errorf("failed to load builgin plugin information interface \nplugin %v", name)
}
p = &Plugin{