diff options
| author | w568w <[email protected]> | 2023-08-09 11:23:29 +0800 |
|---|---|---|
| committer | w568w <[email protected]> | 2023-08-09 11:23:29 +0800 |
| commit | da732687d5747e2140668ab0016a74315d1b40ae (patch) | |
| tree | f975e1e382511130e488c4ef31a54f1ddc9a0989 /xmake/modules | |
| parent | 12f6131319ee6256e33cc9d50110e791f43552ed (diff) | |
update error messages to be consistent with existing styles
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/manager/cargo/find_package.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/tools/rust/check_target.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/package/manager/cargo/find_package.lua b/xmake/modules/package/manager/cargo/find_package.lua index 82d6f6bdb..bc42b7148 100644 --- a/xmake/modules/package/manager/cargo/find_package.lua +++ b/xmake/modules/package/manager/cargo/find_package.lua @@ -87,7 +87,7 @@ end function _get_names_of_libraries(name, target, configs) local names = hashset.new() if configs.cargo_toml then - local cargo = assert(find_tool("cargo"), "cargo not found! Please ensure Rust has been installed") + local cargo = assert(find_tool("cargo"), "cargo not found!") local cargo_args = {"metadata", "--format-version", "1", "--manifest-path", configs.cargo_toml, "--color", "never"} if check_target(target, true) then table.insert(cargo_args, "--filter-platform") diff --git a/xmake/modules/private/tools/rust/check_target.lua b/xmake/modules/private/tools/rust/check_target.lua index 75d68ccf1..e08e830da 100644 --- a/xmake/modules/private/tools/rust/check_target.lua +++ b/xmake/modules/private/tools/rust/check_target.lua @@ -52,7 +52,7 @@ function main(arch, precise) if #archs >= 2 then result = true else - utils.warning("The arch \"%s\" is NOT a valid target triple, will be IGNORED and may cause compilation errors. please check it again", arch) + utils.warning("the arch \"%s\" is NOT a valid target triple, will be IGNORED and may cause compilation errors, please check it again", arch) end -- 2: check by rustc @@ -69,7 +69,7 @@ function main(arch, precise) end end if not result then - utils.warning("The arch \"%s\" is NOT supported by rustc, will be IGNORED and may cause compilation errors. please check it again", arch) + utils.warning("the arch \"%s\" is NOT supported by rustc, will be IGNORED and may cause compilation errors, please check it again", arch) end end |
