Skip to content

Commit

Permalink
Add error handling for unknown core process mode on start (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbolton authored Jan 21, 2025
1 parent de6c663 commit b8aba9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/gui/core/CoreProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,11 @@ void CoreProcess::handleLogLines(const QString &text) {
void CoreProcess::start(std::optional<ProcessMode> processModeOption) {
QMutexLocker locker(&m_processMutex);

if (m_mode == CoreProcess::Mode::None) {
qCritical("cannot start, core mode is unknown");
return;
}

const auto processMode =
processModeOption.value_or(m_appConfig.processMode());

Expand Down

0 comments on commit b8aba9a

Please sign in to comment.