summaryrefslogtreecommitdiff
path: root/xmake/core/base/io.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-30 22:49:54 +0800
committerruki <[email protected]>2020-04-30 10:59:28 +0800
commitbcf967b2abd338f9bcd3de403d5ebbaabf963d94 (patch)
treeae6d42e93489dccf50e865db541b540c0ce71455 /xmake/core/base/io.lua
parent7ddd265b1a3f420103dccdc0075c7a0e0679ccbb (diff)
improve errors msg
Diffstat (limited to 'xmake/core/base/io.lua')
-rw-r--r--xmake/core/base/io.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/io.lua b/xmake/core/base/io.lua
index 264afe59c..796704dd9 100644
--- a/xmake/core/base/io.lua
+++ b/xmake/core/base/io.lua
@@ -563,7 +563,7 @@ function io.open(filepath, mode, opt)
if file then
return _file.new(filepath, file)
else
- return nil, string.format("cannot open file: %s, error: %s", filepath, os.strerror())
+ return nil, string.format("cannot open file: %s, %s", filepath, os.strerror())
end
end
@@ -578,7 +578,7 @@ function io.openlock(filepath)
if lock then
return _filelock.new(filepath, lock)
else
- return nil, string.format("cannot open lock: %s, error: %s", filepath, os.strerror())
+ return nil, string.format("cannot open lock: %s, %s", filepath, os.strerror())
end
end