diff options
| -rw-r--r-- | xmake/core/base/os.lua | 2 | ||||
| -rw-r--r-- | xmake/core/base/serialize.lua | 2 |
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") |
