From 9fa2c5d39ca839fa19abd30e8215973f0ed5da49 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 23 Sep 2022 17:29:22 +0200 Subject: [PATCH] Display more debug info on error. Signed-off-by: Pol Henarejos --- src/fido/ctap2_cbor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)