diff options
| author | ruki <[email protected]> | 2026-07-12 20:33:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-07-12 20:35:03 +0800 |
| commit | fa89f0a96449a880b4d7a01bad80f9675e2eae2d (patch) | |
| tree | 90eb39b294579dcc3af9bb78ec416fd8ae7f49db /xmake/core/main.lua | |
| parent | ee1256b0921f0e6318b092e6635b8674671297b0 (diff) | |
improve error tipserrs
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index f3ad904f5..0c38840de 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -304,6 +304,13 @@ function main.entry() return main._exit(ok, errors) end + -- the project file failed to load when building the option menu? report it and exit now, + -- so that we do not continue into config/build and print the same error again later + local menu_load_error = project.menu_load_error() + if menu_load_error then + return main._exit(false, menu_load_error) + end + if xmake.in_main_thread() then -- check run command as root |
