ARTEMIS-2695 Return exception message in AMQP conversion error response

This commit is contained in:
Dirkjan Ochtman 2020-04-03 14:13:36 +02:00 committed by Clebert Suconic
parent be3579d36d
commit 89f58e1597
1 changed files with 3 additions and 3 deletions

View File

@ -512,9 +512,9 @@ public class CoreAmqpConverter {
body = new AmqpValue(s.toString());
}
}
} catch (Throwable ignored) {
logger.debug("Exception ignored during conversion", ignored.getMessage(), ignored);
body = new AmqpValue("Conversion to AMQP error!");
} catch (Throwable e) {
logger.debug("Exception ignored during conversion", e.getMessage(), e);
body = new AmqpValue("Conversion to AMQP error: " + e.getMessage());
}
}