summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-11 11:23:25 +0800
committerruki <[email protected]>2020-04-11 11:23:25 +0800
commit8d291b23aeccdd781acf4c69e0d12e5181ce6357 (patch)
tree74a69b5141f67aec0e3a0c49ccac1b47f8173a5a
parent7df6126bd87931ed1688fcbbe107fe6e9b6585f8 (diff)
improve errors tips for yasm
-rw-r--r--xmake/modules/core/tools/ml.lua2
-rw-r--r--xmake/modules/core/tools/yasm.lua2
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