diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2009-08-08 13:57:11 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2009-11-01 14:32:35 +0000 |
commit | 6b240a12e21b5f4bf8a58b12d445f6e0b756a3c1 (patch) | |
tree | a56e6a84209624a8e5d47fd1d8ca1c371baf2748 /dbus/dbus-message.c | |
parent | 7689d712570d90546601fa7e02f822b89501d498 (diff) | |
download | dbus-6b240a12e21b5f4bf8a58b12d445f6e0b756a3c1.tar.gz |
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".
Diffstat (limited to 'dbus/dbus-message.c')
-rw-r--r-- | dbus/dbus-message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index 72d3be81..88f195a8 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -4567,7 +4567,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; |