lua: json: fix error ouput
This commit is contained in:
@@ -281,7 +281,7 @@ spa_json_array_new (lua_State *L)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
luaL_error (L, "Json does not support lua type ",
|
luaL_error (L, "Json does not support lua type %s",
|
||||||
lua_typename(L, lua_type(L, -1)));
|
lua_typename(L, lua_type(L, -1)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -327,7 +327,7 @@ spa_json_object_new (lua_State *L)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
luaL_error (L, "Json does not support lua type ",
|
luaL_error (L, "Json does not support lua type %s",
|
||||||
lua_typename(L, lua_type(L, -1)));
|
lua_typename(L, lua_type(L, -1)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user