packer/rpc: Convert any errors in configure to basic error
This commit is contained in:
parent
6e0685047e
commit
a8b66cf020
|
@ -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 {
|
func (p *PostProcessorServer) Configure(raw *interface{}, reply *error) error {
|
||||||
*reply = p.p.Configure(*raw)
|
*reply = p.p.Configure(*raw)
|
||||||
|
if *reply != nil {
|
||||||
|
*reply = NewBasicError(*reply)
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue