Fix a typo in bridge.lua

This commit is contained in:
Gnome Ann 2022-01-17 10:48:53 -05:00
parent 1627afa8c5
commit a4e8f0780c
1 changed files with 2 additions and 2 deletions

View File

@ -1282,10 +1282,10 @@ return function(_python, _bridged)
---@param v table<integer, string>
function KoboldLib_setters.outputs(t, v)
if koboldbridge.userstate ~= "outmod" then
error("Cannot write to `KoboldLib.generated` from outside of an output modifier")
error("Cannot write to `KoboldLib.outputs` from outside of an output modifier")
return
elseif type(v) ~= "table" then
error("`KoboldLib.generated` must be a 1D array of strings; you attempted to set it to a " .. type(v))
error("`KoboldLib.outputs` must be a 1D array of strings; you attempted to set it to a " .. type(v))
return
end
koboldbridge.outputs = v