From 8d291b23aeccdd781acf4c69e0d12e5181ce6357 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 Apr 2020 11:23:25 +0800 Subject: improve errors tips for yasm --- xmake/modules/core/tools/ml.lua | 2 +- xmake/modules/core/tools/yasm.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/core/tools/ml.lua b/xmake/modules/core/tools/ml.lua index b0acd11de..4899b46c6 100644 --- a/xmake/modules/core/tools/ml.lua +++ b/xmake/modules/core/tools/ml.lua @@ -119,7 +119,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags) end errors = errs end - os.raise(tostring(errors)) + raise(tostring(errors)) end } } diff --git a/xmake/modules/core/tools/yasm.lua b/xmake/modules/core/tools/yasm.lua index 305403a5c..510e7bee6 100644 --- a/xmake/modules/core/tools/yasm.lua +++ b/xmake/modules/core/tools/yasm.lua @@ -98,7 +98,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags) os.tryrm(objectfile) -- raise compiling errors - raise(errors) + raise(tostring(errors)) end }, finally -- cgit v1.3.1