21 lines
392 B
Go
Raw Normal View History

package arm
import (
2017-04-04 13:39:01 -07:00
"github.com/hashicorp/packer/builder/azure/common/constants"
2020-11-17 16:31:03 -08:00
"github.com/hashicorp/packer/packer-plugin-sdk/multistep"
)
func processStepResult(
err error, sayError func(error), state multistep.StateBag) multistep.StepAction {
if err != nil {
state.Put(constants.Error, err)
sayError(err)
return multistep.ActionHalt
}
return multistep.ActionContinue
}