lua: json: fix error ouput

This commit is contained in:
Stefan Ursella
2024-04-26 07:27:31 +02:00
parent fd7a1af7ff
commit 709eecb21f

View File

@@ -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;
} }