bjorn преди 9 години
родител
ревизия
626a7995f4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)