Skip to content

Commit

Permalink
error reporting for rti conversion task
Browse files Browse the repository at this point in the history
  • Loading branch information
ponchio committed Jun 8, 2022
1 parent c49a5ac commit 748ae80
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions relight/rtitask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,30 @@ void RtiTask::run() {
relight(true, true);
else if(step == "fromRTI")
fromRTI();
//TODO! deepZOOM should set error and status?
else if(step == "deepzoom") {
if ((err = deepZoom(input_folder, output, 95, 0, 256, callback)).compare("OK") != 0)
if ((err = deepZoom(input_folder, output, 95, 0, 256, callback)).compare("OK") != 0) {
error = err;
status = FAILED;
}
}
else if(step == "tarzoom") {
if ((err = tarZoom(output, output, callback)).compare("OK") != 0)
if ((err = tarZoom(output, output, callback)).compare("OK") != 0) {
error = err;
status = FAILED;
}
}
else if(step == "itarzoom") {
if ((err = itarZoom(output, output, callback)).compare("OK") != 0)
if ((err = itarZoom(output, output, callback)).compare("OK") != 0) {
error = err;
status = FAILED;
}
}
else if(step == "openlime")
openlime();
}
if(status != FAILED)
status = DONE;
else
error = err;
qDebug() << "zoom error: " << err;
}

void RtiTask::relight(bool commonMinMax, bool saveLegacy) {
Expand Down

0 comments on commit 748ae80

Please sign in to comment.