mirror of
https://github.com/overte-org/overte.git
synced 2025-06-19 05:40:14 +02:00
Merge pull request #10645 from seefo/oven
Oven will now give proper return codes when used via CLI
This commit is contained in:
commit
e658953246
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ void BakerCLI::bakeFile(QUrl inputUrl, const QString outputPath) {
|
||||||
_baker->moveToThread(qApp->getNextWorkerThread());
|
_baker->moveToThread(qApp->getNextWorkerThread());
|
||||||
} else {
|
} else {
|
||||||
qCDebug(model_baking) << "Failed to determine baker type for file" << inputUrl;
|
qCDebug(model_baking) << "Failed to determine baker type for file" << inputUrl;
|
||||||
return;
|
QApplication::exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// invoke the bake method on the baker thread
|
// invoke the bake method on the baker thread
|
||||||
|
@ -60,5 +60,5 @@ void BakerCLI::bakeFile(QUrl inputUrl, const QString outputPath) {
|
||||||
|
|
||||||
void BakerCLI::handleFinishedBaker() {
|
void BakerCLI::handleFinishedBaker() {
|
||||||
qCDebug(model_baking) << "Finished baking file.";
|
qCDebug(model_baking) << "Finished baking file.";
|
||||||
QApplication::quit();
|
QApplication::exit(_baker.get()->hasErrors());
|
||||||
}
|
}
|
Loading…
Reference in a new issue