Skip to content

Commit

Permalink
Show true executable in process start failure error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
oblivioncth committed Oct 11, 2023
1 parent 377b372 commit bf275e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/task/t-exec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit bf275e0

Please sign in to comment.