From fa89f0a96449a880b4d7a01bad80f9675e2eae2d Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 12 Jul 2026 20:33:23 +0800 Subject: improve error tips --- xmake/core/main.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmake/core/main.lua') 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 -- cgit v1.3.1