Implement unknown error message

This commit is contained in:
Hendrik Hofstadt 2018-09-17 20:14:11 +02:00
parent 7e9a251ebe
commit e485992e10
1 changed files with 2 additions and 0 deletions

View File

@ -213,6 +213,8 @@ func (e *Error) Error() string {
message = "ID illegal" message = "ID illegal"
case ErrorCodeCommandUnexecuted: case ErrorCodeCommandUnexecuted:
message = "Command unexecuted" message = "Command unexecuted"
default:
message = "unknown"
} }
return fmt.Sprintf("card responded with error: %s", message) return fmt.Sprintf("card responded with error: %s", message)