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

View File

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