yet another bugfix X-(

This time it really does work with pensieve.love
This commit is contained in:
Kartik K. Agaram 2023-09-09 09:27:56 -07:00
parent 0016d668bc
commit 790b7f18db
1 changed files with 2 additions and 2 deletions

View File

@ -468,11 +468,11 @@ function App.disable_tests()
end
end
App.write_file =
function(filename, contents)
function(path, contents)
if not is_absolute_path(path) then
return --[[status]] false, 'Please use an unambiguous absolute path.'
end
local f, err = App.open_for_writing(filename)
local f, err = App.open_for_writing(path)
if err then
return --[[status]] false, err
end