mirror of
https://github.com/robotn/gohook.git
synced 2024-11-24 13:26:54 +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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user