summaryrefslogtreecommitdiff
path: root/xmake/core/base/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/utils.lua')
-rw-r--r--xmake/core/base/utils.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua
index 3bd265ce3..f6e56b15f 100644
--- a/xmake/core/base/utils.lua
+++ b/xmake/core/base/utils.lua
@@ -197,6 +197,9 @@ function utils.trycall(script, traceback, ...)
end
if type(errors) == "table" then
setmetatable(errors, { __tostring = function (self)
+ if self.errors then
+ return self.errors
+ end
return string.serialize(self)
end
})