From a8b66cf0201c0ae0908ee3df3319e493b3a5a3c3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 18 Jun 2013 21:04:33 -0700 Subject: [PATCH] packer/rpc: Convert any errors in configure to basic error --- packer/rpc/post_processor.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packer/rpc/post_processor.go b/packer/rpc/post_processor.go index 3f4948d1f..c9af13543 100644 --- a/packer/rpc/post_processor.go +++ b/packer/rpc/post_processor.go @@ -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 }