Fix panic with nil message entry
This commit is contained in:
parent
8bd1822722
commit
527a1c97e7
|
@ -445,7 +445,7 @@ func (b *cloudBackend) waitForUpdate(path string) (apitype.UpdateStatus, error)
|
||||||
func printEvent(event apitype.UpdateEvent) {
|
func printEvent(event apitype.UpdateEvent) {
|
||||||
stream := os.Stdout // Ignoring event.Kind which could be StderrEvent.
|
stream := os.Stdout // Ignoring event.Kind which could be StderrEvent.
|
||||||
rawEntry, ok := event.Fields["text"]
|
rawEntry, ok := event.Fields["text"]
|
||||||
if !ok {
|
if !ok || rawEntry == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
text := rawEntry.(string)
|
text := rawEntry.(string)
|
||||||
|
|
Loading…
Reference in a new issue