17 lines
296 B
Go
17 lines
296 B
Go
|
package ncloud
|
||
|
|
||
|
import (
|
||
|
"github.com/mitchellh/multistep"
|
||
|
)
|
||
|
|
||
|
func processStepResult(err error, sayError func(error), state multistep.StateBag) multistep.StepAction {
|
||
|
if err != nil {
|
||
|
state.Put("Error", err)
|
||
|
sayError(err)
|
||
|
|
||
|
return multistep.ActionHalt
|
||
|
}
|
||
|
|
||
|
return multistep.ActionContinue
|
||
|
}
|