From 90f47e10434ceaeb21d45cd32c72c65522146644 Mon Sep 17 00:00:00 2001 From: Marcus Eriksson Date: Tue, 11 Jun 2019 21:50:52 +0200 Subject: [PATCH] Only include the type name in the error message --- yaml/serialization.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml/serialization.nim b/yaml/serialization.nim index f04f607..728f38e 100644 --- a/yaml/serialization.nim +++ b/yaml/serialization.nim @@ -1086,7 +1086,7 @@ macro constructImplicitVariantObject(s, c, r, possibleTagIds: untyped, let raiseStmt = newNimNode(nnkRaiseStmt).add( newCall(bindSym("constructionError"), s, infix(newStrLitNode("This value type does not map to any field in " & - getTypeImpl(t).repr & ": "), "&", + getTypeImpl(t)[1].repr & ": "), "&", newCall("uri", newIdentNode("serializationTagLibrary"), newNimNode(nnkBracketExpr).add(possibleTagIds, newIntLitNode(0))) )