summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 2c3b5e877..fa8576825 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -767,8 +767,10 @@ function os.raiselevel(level, msg, ...)
else
error(errors, level)
end
- else
+ elseif msg ~= nil then
error(tostring(msg), level)
+ else
+ error(msg, level)
end
end