summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-14 23:19:07 +0800
committerruki <[email protected]>2024-08-23 08:14:31 +0800
commitbfa9955d94112c4efdded7ef25e5765b0d282d72 (patch)
tree32b1c16c6c6f1c6c5358d3d4cca3ddb8dfc21288
parent39544b566c426551afe6c72e0f4c76cf5814ce67 (diff)
improve tips
-rw-r--r--xmake/core/tool/toolchain.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua
index f4055beb7..a3887d47e 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -209,7 +209,7 @@ end
-- get the program and name of the given tool kind
function _instance:tool(toolkind)
if not self:_is_checked() then
- os.raise("toolchain(%s) has been not checked yet!", self:name())
+ os.raise("we cannot get tool(%s) in toolchain(%s), because it has been not checked yet!", toolkind, self:name())
end
-- ensure to do load for initializing toolset first
-- @note we cannot call self:check() here, because it can only be called on config
@@ -810,7 +810,7 @@ function toolchain.toolconfig(toolchains, name, opt)
if toolconfig == nil then
for _, toolchain_inst in ipairs(toolchains) do
if not toolchain_inst:_is_checked() then
- os.raise("toolchain(%s) has been not checked yet!", toolchain_inst:name())
+ os.raise("we cannot get toolconfig(%s) in toolchain(%s), because it has been not checked yet!", name, toolchain_inst:name())
end
local values = toolchain_inst:get(name)
if values then