Skip to content

Commit

Permalink
Implement Error on base receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored and lorenzodonini committed Sep 16, 2024
1 parent 41fd37d commit 9090a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocpp/ocpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewHandlerError(errorCode ErrorCode, description string) *Error {
return &Error{Code: errorCode, Description: description, MessageId: ""}
}

func (err *Error) Error() string {
func (err Error) Error() string {
return fmt.Sprintf("ocpp message (%s): %v - %v", err.MessageId, err.Code, err.Description)
}

Expand Down

0 comments on commit 9090a55

Please sign in to comment.