Commit 198f984b authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: error if UI fails

parent 4b665e39
...@@ -19,9 +19,15 @@ type ReaderWriterUi struct { ...@@ -19,9 +19,15 @@ type ReaderWriterUi struct {
} }
func (rw *ReaderWriterUi) Say(format string, a ...interface{}) { func (rw *ReaderWriterUi) Say(format string, a ...interface{}) {
fmt.Fprintf(rw.Writer, format, a...) _, err := fmt.Fprintf(rw.Writer, format, a...)
if err != nil {
panic(err)
}
} }
func (rw *ReaderWriterUi) Error(format string, a ...interface{}) { func (rw *ReaderWriterUi) Error(format string, a ...interface{}) {
fmt.Fprintf(rw.Writer, format, a...) _, err := fmt.Fprintf(rw.Writer, format, a...)
if err != nil {
panic(err)
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment