Matthew Hooker
5e6e12cacd
Use fmt to convert whatever's in error to a string.
...
This way we don't crash if someone sticks something else in the error
key in the state bag (which a quick glance at the code tells me we're
already doing.
Perhaps in the future we can add an error attribute to the state bag
but for now this will have to suffice.
2018-05-08 15:22:02 -07:00
Matthew Hooker
0a1842140b
Display build error when on-error=ask|abort
2018-05-08 04:06:03 -07:00
Matthew Hooker
5d48d658b4
Wire context through misc steps
...
Some steps actually need to pass the context around, so let's create
a ctx variable and pass it.
2018-01-24 17:09:17 -08:00
Matthew Hooker
366dc3da0a
move multistep imports to helper.
...
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
262c8dc24a
WIP fix #4670
2017-03-16 14:18:41 -07:00
Orivej Desh
4fe86244a5
Improve -on-error descriptions
2016-09-18 03:00:36 +00:00
Orivej Desh
639bf356aa
Fail on unknown values of -on-error
2016-09-17 14:42:21 +00:00
Orivej Desh
389603cc0f
Allow upper case input to -on-error=ask
2016-09-16 12:15:00 +00:00
Orivej Desh
115cb5080f
Document NewRunner
2016-09-16 12:15:00 +00:00
Orivej Desh
6762965696
Add -on-error command line argument to allow preserving artifacts on builder errors
...
Resolves #409
2016-09-16 12:15:00 +00:00