diff options
| author | ruki <[email protected]> | 2019-05-23 22:21:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-05-23 08:07:37 +0800 |
| commit | 7434ac208724ea5840e32040fda9601feb4dd722 (patch) | |
| tree | 01354815e47eb7dd2e57909024432d57576a81ef /xmake/core/base/utils.lua | |
| parent | af7907d7adc0c60930477730876f0ed74d3a9f5a (diff) | |
translate path for gcc and cl
Diffstat (limited to 'xmake/core/base/utils.lua')
| -rw-r--r-- | xmake/core/base/utils.lua | 3 |
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 }) |
