From 7cf332d34ea974b9781f47f4af4efca4de71b96a Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Sat, 8 Aug 2009 13:57:11 +0100 Subject: [PATCH] Include reason when reporting corrupt messages It would have been much easier to diagnose fd.o#19723 if the error message had said more than just "Message is corrupted". --- dbus/dbus-message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index b7b5afca..0b81806f 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -4091,7 +4091,8 @@ dbus_message_demarshal (const char *str, return msg; fail_corrupt: - dbus_set_error (error, DBUS_ERROR_INVALID_ARGS, "Message is corrupted"); + dbus_set_error (error, DBUS_ERROR_INVALID_ARGS, "Message is corrupted (%s)", + _dbus_validity_to_error_message (loader->corruption_reason)); _dbus_message_loader_unref (loader); return NULL; -- 2.34.1