packer/rpc: Convert any errors in configure to basic error

This commit is contained in:
Mitchell Hashimoto 2013-06-18 21:04:33 -07:00
parent 2e1b69ad39
commit 7217865797
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ func (p *postProcessor) PostProcess(ui packer.Ui, a packer.Artifact) (packer.Art
func (p *PostProcessorServer) Configure(raw *interface{}, reply *error) error {
*reply = p.p.Configure(*raw)
if *reply != nil {
*reply = NewBasicError(*reply)
}
return nil
}