diff --git a/src/fido/ctap2_cbor.h b/src/fido/ctap2_cbor.h index 5399d89..6fa4fb6 100644 --- a/src/fido/ctap2_cbor.h +++ b/src/fido/ctap2_cbor.h @@ -44,7 +44,7 @@ extern const bool _btrue, _bfalse; error = f; \ if (error != CborNoError) \ { \ - printf("Cannot encode CBOR [%s:%d]: %s\n", __FILE__, __LINE__, #f); \ + printf("Cannot encode CBOR [%s:%d]: %s (%d)\n", __FILE__, __LINE__, #f, error); \ goto err; \ } \ } while (0)