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

View File

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