mirror of
https://github.com/robotn/gohook.git
synced 2024-11-21 18:36:51 +08:00
update go send json.Unmarshal error log
This commit is contained in:
parent
ac371ff7cb
commit
33863b3401
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user