From e485992e10b783ae272949fbdc161cc491ff03c4 Mon Sep 17 00:00:00 2001 From: Hendrik Hofstadt Date: Mon, 17 Sep 2018 20:14:11 +0200 Subject: [PATCH] Implement unknown error message --- commands/response.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/response.go b/commands/response.go index 80c2cbb..7dc35fc 100644 --- a/commands/response.go +++ b/commands/response.go @@ -213,6 +213,8 @@ func (e *Error) Error() string { message = "ID illegal" case ErrorCodeCommandUnexecuted: message = "Command unexecuted" + default: + message = "unknown" } return fmt.Sprintf("card responded with error: %s", message)