From c00efce3200446d205391d417a10af771d3b0563 Mon Sep 17 00:00:00 2001 From: "Harry T. Vennik" Date: Mon, 17 Jul 2017 11:28:54 +0200 Subject: [PATCH] Fix: Expected and actual type swapped in TypeMismatchException --- source/ddbus/conv.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ddbus/conv.d b/source/ddbus/conv.d index d75425e..e1fba6d 100644 --- a/source/ddbus/conv.d +++ b/source/ddbus/conv.d @@ -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;