mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-25 03:10:04 +01:00
lua: json: fix error ouput
This commit is contained in:
parent
fd7a1af7ff
commit
709eecb21f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue