Commit ac088bee authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: Wrap errors in BasicError for RPC config errors

parent a2f7950f
......@@ -49,6 +49,10 @@ func (p *provisioner) Provision(ui packer.Ui, comm packer.Communicator) {
func (p *ProvisionerServer) Prepare(args *ProvisionerPrepareArgs, reply *error) error {
*reply = p.p.Prepare(args.Configs...)
if *reply != nil {
*reply = NewBasicError(*reply)
}
return nil
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment