Skip to content

Commit bc4a44f

Browse files
Ev3ntdyemanov
authored andcommitted
Postfix for #8752 (#8953)
* Errors don't have enough time to be printed (fix) * Optimization
1 parent 91a19c3 commit bc4a44f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/alice/exe.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,13 @@ int EXE_action(const TEXT* database, const SINT64 switches)
130130
}
131131
}
132132

133+
// It takes longer to print errors, so don't call the started() method and just return
134+
if (error)
135+
return FINI_ERROR;
136+
133137
tdgbl->uSvc->started();
134138

135-
return error ? FINI_ERROR : FINI_OK;
139+
return FINI_OK;
136140
}
137141

138142

@@ -186,9 +190,12 @@ int EXE_two_phase(const TEXT* database, const SINT64 switches)
186190
}
187191
}
188192

193+
if (error)
194+
return FINI_ERROR;
195+
189196
tdgbl->uSvc->started();
190197

191-
return (error ? FINI_ERROR : FINI_OK);
198+
return FINI_OK;
192199
}
193200

194201
//____________________________________________________________

0 commit comments

Comments
 (0)