Skip to content

Commit

Permalink
chore: more information about publish error
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 committed May 15, 2020
1 parent 2f1a993 commit fe72045
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rawevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ func (cl *EventClient) handleEvent(event string) {
func (cl *EventClient) publishEvent(eventName string, parameters url.Values, v interface{}) {
err := cl.decoder.Decode(v, parameters)
if err != nil {
fmt.Println(err)
fmt.Printf(
"Decoding Failed\nevent %s\nparams: %s\nerror:%s",
eventName, parameters.Encode(), err.Error(),
)
return
}

Expand Down

0 comments on commit fe72045

Please sign in to comment.