github.phpd.cn/hashicorp/packer@v1.3.2/builder/azure/arm/step.go (about)

     1  package arm
     2  
     3  import (
     4  	"github.com/hashicorp/packer/builder/azure/common/constants"
     5  	"github.com/hashicorp/packer/helper/multistep"
     6  )
     7  
     8  func processStepResult(
     9  	err error, sayError func(error), state multistep.StateBag) multistep.StepAction {
    10  
    11  	if err != nil {
    12  		state.Put(constants.Error, err)
    13  		sayError(err)
    14  
    15  		return multistep.ActionHalt
    16  	}
    17  
    18  	return multistep.ActionContinue
    19  
    20  }