Browse Source

Catch any JSON errors

main
Sam 6 years ago
parent
commit
a5a50f79cd
  1. 4
      chatOut.go

4
chatOut.go

@ -17,7 +17,9 @@ func chatAPIOut(keybasePath string, c ChatAPI) (ChatAPI, error) {
} }
var r ChatAPI var r ChatAPI
json.Unmarshal(cmdOut, &r) if err := json.Unmarshal(cmdOut, &r); err != nil {
return ChatAPI{}, err
}
return r, nil return r, nil
} }

Loading…
Cancel
Save