Skip to content

Commit b2e9ae6

Browse files
authored
DPL: quit on error by default in no-batch mode without GUI window (#13654)
1 parent 3615d30 commit b2e9ae6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Framework/Core/src/runDataProcessing.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,9 @@ int runStateMachine(DataProcessorSpecs const& workflow,
14451445
if (driverConfig.batch == false && window == nullptr && frameworkId.empty()) {
14461446
LOG(warn) << "Could not create GUI. Switching to batch mode. Do you have GLFW on your system?";
14471447
driverConfig.batch = true;
1448+
if (varmap["error-policy"].defaulted()) {
1449+
driverInfo.processingPolicies.error = TerminationPolicy::QUIT;
1450+
}
14481451
}
14491452
bool guiQuitRequested = false;
14501453
bool hasError = false;

0 commit comments

Comments
 (0)