From 3fb2953cc46fa2b1ae158b84c1e282073e68b052 Mon Sep 17 00:00:00 2001 From: Ev3nt Date: Wed, 25 Mar 2026 11:47:51 +0300 Subject: [PATCH 1/2] Errors don't have enough time to be printed (fix) --- src/alice/exe.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/alice/exe.cpp b/src/alice/exe.cpp index 6592c9c9545..8cfb5fb56e8 100644 --- a/src/alice/exe.cpp +++ b/src/alice/exe.cpp @@ -130,7 +130,9 @@ int EXE_action(const TEXT* database, const SINT64 switches) } } - tdgbl->uSvc->started(); + // It takes longer to print errors, so don't call the started() method + if (!error) + tdgbl->uSvc->started(); return error ? FINI_ERROR : FINI_OK; } @@ -186,7 +188,8 @@ int EXE_two_phase(const TEXT* database, const SINT64 switches) } } - tdgbl->uSvc->started(); + if (!error) + tdgbl->uSvc->started(); return (error ? FINI_ERROR : FINI_OK); } From 519d3db09059102510a1a3a0b09fbb9137da8d60 Mon Sep 17 00:00:00 2001 From: Ev3nt Date: Thu, 26 Mar 2026 08:57:10 +0300 Subject: [PATCH 2/2] Optimization --- src/alice/exe.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/alice/exe.cpp b/src/alice/exe.cpp index 8cfb5fb56e8..4cdfa8da4a3 100644 --- a/src/alice/exe.cpp +++ b/src/alice/exe.cpp @@ -130,11 +130,13 @@ int EXE_action(const TEXT* database, const SINT64 switches) } } - // It takes longer to print errors, so don't call the started() method - if (!error) - tdgbl->uSvc->started(); + // It takes longer to print errors, so don't call the started() method and just return + if (error) + return FINI_ERROR; - return error ? FINI_ERROR : FINI_OK; + tdgbl->uSvc->started(); + + return FINI_OK; } @@ -188,10 +190,12 @@ int EXE_two_phase(const TEXT* database, const SINT64 switches) } } - if (!error) - tdgbl->uSvc->started(); + if (error) + return FINI_ERROR; + + tdgbl->uSvc->started(); - return (error ? FINI_ERROR : FINI_OK); + return FINI_OK; } //____________________________________________________________