Only include the type name in the error message

This commit is contained in:
Marcus Eriksson 2019-06-11 21:50:52 +02:00 committed by flyx
parent ef2b2e9ae7
commit 90f47e1043
1 changed files with 1 additions and 1 deletions

View File

@ -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)))
)