Explorar o código

Fix error message;

bjorn %!s(int64=9) %!d(string=hai) anos
pai
achega
626a7995f4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      util.lua

+ 1 - 1
util.lua

@@ -66,7 +66,7 @@ function util.coerceValue(node, schemaType, variables)
 
   if schemaType.__type == 'Scalar' then
     if schemaType.parseLiteral(node) == nil then
-      error('Could not coerce "' .. node.value .. '" to "' .. schemaType.name .. '"')
+      error('Could not coerce "' .. tostring(node.value) .. '" to "' .. schemaType.name .. '"')
     end
 
     return schemaType.parseLiteral(node)