packer: don't panic if can't write to UI
This commit is contained in:
parent
8df4c991df
commit
9fa9cae9b3
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
BUG FIXES:
|
BUG FIXES:
|
||||||
|
|
||||||
|
* core: Won't panic when writing to a bad pipe. [GH-560]
|
||||||
* common/uuid: Use cryptographically secure PRNG when generating
|
* common/uuid: Use cryptographically secure PRNG when generating
|
||||||
UUIDs. [GH-552]
|
UUIDs. [GH-552]
|
||||||
|
|
||||||
|
|
||||||
## 0.3.10 (October 20, 2013)
|
## 0.3.10 (October 20, 2013)
|
||||||
|
|
||||||
FEATURES:
|
FEATURES:
|
||||||
|
|
|
@ -210,7 +210,7 @@ func (rw *BasicUi) Say(message string) {
|
||||||
log.Printf("ui: %s", message)
|
log.Printf("ui: %s", message)
|
||||||
_, err := fmt.Fprint(rw.Writer, message+"\n")
|
_, err := fmt.Fprint(rw.Writer, message+"\n")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
log.Printf("[ERR] Failed to write to UI: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ func (rw *BasicUi) Message(message string) {
|
||||||
log.Printf("ui: %s", message)
|
log.Printf("ui: %s", message)
|
||||||
_, err := fmt.Fprint(rw.Writer, message+"\n")
|
_, err := fmt.Fprint(rw.Writer, message+"\n")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
log.Printf("[ERR] Failed to write to UI: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ func (rw *BasicUi) Error(message string) {
|
||||||
log.Printf("ui error: %s", message)
|
log.Printf("ui error: %s", message)
|
||||||
_, err := fmt.Fprint(rw.Writer, message+"\n")
|
_, err := fmt.Fprint(rw.Writer, message+"\n")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
log.Printf("[ERR] Failed to write to UI: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue