diff --git a/chatOut.go b/chatOut.go index 8ccc69a..5397ffb 100644 --- a/chatOut.go +++ b/chatOut.go @@ -17,7 +17,9 @@ func chatAPIOut(keybasePath string, c ChatAPI) (ChatAPI, error) { } var r ChatAPI - json.Unmarshal(cmdOut, &r) + if err := json.Unmarshal(cmdOut, &r); err != nil { + return ChatAPI{}, err + } return r, nil }