more missing errors

This commit is contained in:
Syping 2020-10-16 06:32:34 +02:00
parent 866f0f1874
commit d2aed1ef6e

View file

@ -171,6 +171,10 @@ int main(int argc, char *argv[])
if (likely(!envExecutable.isEmpty())) { if (likely(!envExecutable.isEmpty())) {
executable = QString::fromUtf8(envExecutable); executable = QString::fromUtf8(envExecutable);
} }
else {
QTextStream(stderr) << "Executable is not defined in environment, aborting!" << smsub_endl;
return 1;
}
if (likely(!envArguments.isEmpty())) { if (likely(!envArguments.isEmpty())) {
argumentList = parseStringArguments(QString::fromUtf8(envArguments)); argumentList = parseStringArguments(QString::fromUtf8(envArguments));
@ -179,6 +183,10 @@ int main(int argc, char *argv[])
return 1; return 1;
} }
} }
else {
QTextStream(stderr) << "Arguments are not defined in environment, aborting!" << smsub_endl;
return 1;
}
} }
if (unlikely(!envTimeout.isEmpty())) { if (unlikely(!envTimeout.isEmpty())) {