Add a PRINTF of amounts in ERR_SILENT_MODE_CHECK_FAILED

This commit is contained in:
Francois Beutin
2023-10-04 14:51:40 +02:00
parent 994b1cee8e
commit ad2786efe0

View File

@@ -473,6 +473,8 @@ void finalizeParsing(bool direct) {
// Ensure the values are the same that the ones that have been previously validated
if (strcmp(strings.common.fullAmount, displayBuffer) != 0) {
PRINTF("ERR_SILENT_MODE_CHECK_FAILED, amount check failed\n");
PRINTF("Expected %s\n", strings.common.fullAmount);
PRINTF("Received %s\n", displayBuffer);
THROW(ERR_SILENT_MODE_CHECK_FAILED);
}
} else {