about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-09-09 09:09:14 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-09-09 09:09:14 -0700
commit0016d668bcbd5a88afaaa305cddeff7a4300f215 (patch)
tree791cae5e278bcdbc674a995affcde032c92f72c9
parentbcd7f6b59828f6f5419c1a48394d12177ba35446 (diff)
downloadlines.love-0016d668bcbd5a88afaaa305cddeff7a4300f215.tar.gz
two bugfixes
Annoying dangers of testing in one fork and committing upstream
(where it isn't used yet).
-rw-r--r--app.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/app.lua b/app.lua
index b615ad0..d4a2a70 100644
--- a/app.lua
+++ b/app.lua
@@ -444,7 +444,7 @@ function App.disable_tests()
           return ok, err
         end
       end
-  App.read =
+  App.read_file =
       function(path)
         if not is_absolute_path(path) then
           return --[[status]] false, 'Please use an unambiguous absolute path.'
@@ -467,7 +467,7 @@ function App.disable_tests()
           return ok, err
         end
       end
-  App.write =
+  App.write_file =
       function(filename, contents)
         if not is_absolute_path(path) then
           return --[[status]] false, 'Please use an unambiguous absolute path.'
@@ -478,6 +478,7 @@ function App.disable_tests()
         end
         f:write(contents)
         f:close()
+        return --[[status]] true
       end
   App.files = nativefs.getDirectoryItems
   App.mkdir = nativefs.createDirectory