Mercurial > repos > ecology > otb_mean_shift_smoothing
changeset 1:dd397752ad21 draft default tip
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/interpolation commit 5e963dcfe6e22e42473987179b70ad490f918cb9
author | ecology |
---|---|
date | Fri, 12 Apr 2024 18:41:57 +0000 |
parents | 6c6e8b16dba6 |
children | |
files | OTB_MeanShiftSmoothing.R |
diffstat | 1 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/OTB_MeanShiftSmoothing.R Wed Mar 13 19:12:46 2024 +0000 +++ b/OTB_MeanShiftSmoothing.R Fri Apr 12 18:41:57 2024 +0000 @@ -167,10 +167,15 @@ } } else if (response2$status == "failed") { status <- "failed" + message("An error occurred. For further details, check OGC Job status + through https://ospd.geolabs.fr:8300/ogc-api/jobs/", response2$jobID) + q(status = 1) } } else { status <- "failed" - print(paste("HTTP", status_code2, "Error:", resp2$status_message)) + print(paste("HTTP", status_code2, "Error:", resp2$status_message, "An error occurred. For further details, + check OGC Job status through https://ospd.geolabs.fr:8300/ogc-api/jobs/", response2$jobID)) + q(status = 1) } Sys.sleep(3) } @@ -184,4 +189,8 @@ } else { print(paste("HTTP", status_code1, "Error:", resp1$status_message)) } -}) +}, error = function(e) { + message("An error occurred:", e) + # Exit with code 1 + q(status = 1) +}) \ No newline at end of file