summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/getopts.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getopts.lua b/lib/getopts.lua
index 9940f53..644b741 100644
--- a/lib/getopts.lua
+++ b/lib/getopts.lua
@@ -11,7 +11,7 @@ function setoptsinfile (file, search, option, value)
opts[search] = {}
end
if not (search) or not (option) then
- return nil, "Invalid usage of function getopts.setoptsinfile()"
+ return nil, "Systeminformation - Invalid usage of function getopts.setoptsinfile()"
end
--Change to new value
@@ -34,7 +34,7 @@ function setoptsinfile (file, search, option, value)
else
fs.write_file(file,string.match(newfilecontent, "(.-)\n*$"))
end
- return "File '" .. file .. "'has been modifyed!"
+ return true, "File '" .. file .. "'has been modifyed!"
end
function getoptsfromfile (file, search, filter)