Skip to content

Commit

Permalink
Added Read- and WriteTimeout Error
Browse files Browse the repository at this point in the history
  • Loading branch information
moroen committed Jan 14, 2020
1 parent a206c27 commit b62c5d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ func errorToStatus(err error) string {
return "Unauthorized"
case coap.MethodNotAllowed:
return "MethodNotAllowed"
case coap.ErrorReadTimeout:
return "ReadTimeoutError"
case coap.ErrorWriteTimeout:
return "WriteTimeoutError"
}
return "UnknownStatus"
}
Expand Down

0 comments on commit b62c5d6

Please # to comment.