From bf275e07e61efd85ab301619441ede7b163c634e Mon Sep 17 00:00:00 2001 From: Christian Heimlich Date: Wed, 11 Oct 2023 05:36:41 -0400 Subject: [PATCH] Show true executable in process start failure error msg --- app/src/task/t-exec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/task/t-exec.cpp b/app/src/task/t-exec.cpp index 4cfa2d8..96ae23f 100644 --- a/app/src/task/t-exec.cpp +++ b/app/src/task/t-exec.cpp @@ -128,7 +128,7 @@ TExecError TExec::cleanStartProcess(QProcess* process) // Make sure process starts if(!process->waitForStarted()) { - TExecError err(TExecError::CouldNotStart, ERR_DETAILS_TEMPLATE.arg(mExecutable, ENUM_NAME(process->error()))); + TExecError err(TExecError::CouldNotStart, ERR_DETAILS_TEMPLATE.arg(process->program(), ENUM_NAME(process->error()))); emit errorOccurred(NAME, err); delete process; // Clear finished process handle from heap return err; @@ -233,7 +233,7 @@ void TExec::perform() taskProcess->setStandardErrorFile(QProcess::nullDevice()); if(!taskProcess->startDetached()) { - TExecError err(TExecError::CouldNotStart, ERR_DETAILS_TEMPLATE.arg(mExecutable, ENUM_NAME(taskProcess->error()))); + TExecError err(TExecError::CouldNotStart, ERR_DETAILS_TEMPLATE.arg(taskProcess->program(), ENUM_NAME(taskProcess->error()))); emit errorOccurred(NAME, err); emit complete(err); return;