_dbus_validity_to_error_message: add missing cases
authorThomas Zimmermann <tdz@users.sourceforge.net>
Tue, 23 Aug 2016 18:43:37 +0000 (20:43 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 17 Jan 2017 17:20:53 +0000 (17:20 +0000)
[smcv: split out from a larger commit]
Reviewed-by: Simon McVittie <smcv@debian.org>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191

dbus/dbus-marshal-validate.c

index e122499..578b09f 100644 (file)
@@ -898,7 +898,9 @@ _dbus_validity_to_error_message (DBusValidity validity)
     case DBUS_INVALID_DICT_ENTRY_HAS_TOO_MANY_FIELDS:              return "Dict entry has too many fields";
     case DBUS_INVALID_DICT_ENTRY_NOT_INSIDE_ARRAY:                 return "Dict entry not inside array";
     case DBUS_INVALID_DICT_KEY_MUST_BE_BASIC_TYPE:                 return "Dict key must be basic type";
+    case DBUS_INVALID_MISSING_UNIX_FDS:                            return "Unix file descriptor missing";
     case DBUS_INVALID_NESTED_TOO_DEEPLY:                           return "Variants cannot be used to create a hugely recursive tree of values";
+    case DBUS_VALIDITY_LAST:
     default:
       return "Invalid";
     }