summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-23 22:29:53 +0800
committerruki <[email protected]>2019-08-23 08:59:22 +0800
commit713d22e55d1fc6633f76ab34fe913ac5d793b735 (patch)
tree2b759f2adc6a2ee61d450a4b7b6199b9d3962677 /xmake/core/base/os.lua
parentf7dab75be8be22f021409e6d17625dc53e0f7d10 (diff)
improve raise
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index ad9f37627..2c3b5e877 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -761,7 +761,7 @@ function os.raiselevel(level, msg, ...)
if type(msg) == "string" then
error(string.tryformat(msg, ...), level)
elseif type(msg) == "table" then
- local errobjstr, errors = string.serialize(msg, true)
+ local errobjstr, errors = string.serialize(msg, {strip = true, indent = false})
if errobjstr then
error("[@encode(error)]: " .. errobjstr, level)
else