summaryrefslogtreecommitdiff
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
parentf7dab75be8be22f021409e6d17625dc53e0f7d10 (diff)
improve raise
-rw-r--r--xmake/core/base/os.lua2
-rw-r--r--xmake/core/base/serialize.lua2
2 files changed, 2 insertions, 2 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
diff --git a/xmake/core/base/serialize.lua b/xmake/core/base/serialize.lua
index 464180c95..9dd9888e5 100644
--- a/xmake/core/base/serialize.lua
+++ b/xmake/core/base/serialize.lua
@@ -23,7 +23,7 @@
local serialize = serialize or {}
local stub = serialize._stub or {}
serialize._stub = stub
-serialize._dump = serialize._dump or string._dump or string.dump
+serialize._dump = serialize._dump or string._dump or string.dump
-- load modules
local math = require("base/math")