update go send json.Unmarshal error log

This commit is contained in:
vcaesar 2019-06-22 12:58:07 -04:00
parent ac371ff7cb
commit 33863b3401
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ func go_send(s *C.char) {
err := json.Unmarshal(str, &out)
if err != nil {
log.Fatal(err)
log.Fatal("json.Unmarshal error is: ", err)
}
if out.Keychar != CharUndefined {
@ -32,7 +32,7 @@ func go_send(s *C.char) {
// todo bury this deep into the C lib so that the time is correct
out.When = time.Now() // at least it's consistent
if err != nil {
log.Fatal(err)
log.Fatal("json.Unmarshal error is: ", err)
}
// todo: maybe make non-bloking