Fix: Expected and actual type swapped in TypeMismatchException

This commit is contained in:
Harry T. Vennik 2017-07-17 11:28:54 +02:00
parent 547705ae11
commit c00efce320

View file

@ -139,7 +139,7 @@ T readIter(T)(DBusMessageIter *iter) if (canDBus!T) {
static if(!is(T == DBusAny) && !is(T == Variant!DBusAny)) {
auto argType = dbus_message_iter_get_arg_type(iter);
enforce(argType == typeCode!T(),
new TypeMismatchException(argType, typeCode!T()));
new TypeMismatchException(typeCode!T(), argType));
}
static if(is(T==string) || is(T==ObjectPath)) {
const(char)* cStr;