Standardizing execution errors to nil followed by an error message

This commit is contained in:
tomas
2006-03-14 13:39:38 +00:00
parent 1a1716f876
commit 121ae680f1
2 changed files with 8 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ assert (new_att.modification == attrib.modification)
-- Remove new file and directory
assert (os.remove (tmpfile), "could not remove new file")
assert (lfs.rmdir (tmpdir), "could not remove new directory")
assert (lfs.mkdir (tmpdir..sep.."lfs_tmp_dir") == false, "could create a directory inside a non-existent one")
assert (lfs.mkdir (tmpdir..sep.."lfs_tmp_dir") == nil, "could create a directory inside a non-existent one")
-- Trying to get attributes of a non-existent file
assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file")