From 748ae80a4b1ab819c4096cee0b7e9330d88cdd3e Mon Sep 17 00:00:00 2001 From: ponchio Date: Wed, 8 Jun 2022 13:12:01 +0200 Subject: [PATCH] error reporting for rti conversion task --- relight/rtitask.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/relight/rtitask.cpp b/relight/rtitask.cpp index 6c2cad95..6ce7ab6e 100644 --- a/relight/rtitask.cpp +++ b/relight/rtitask.cpp @@ -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) {