# HG changeset patch
# User ecology
# Date 1712947317 0
# Node ID dd397752ad21b9bd59b518183eb4128616d61773
# Parent  6c6e8b16dba67039ac559ca72838d61b880ce436
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/interpolation commit 5e963dcfe6e22e42473987179b70ad490f918cb9

diff -r 6c6e8b16dba6 -r dd397752ad21 OTB_MeanShiftSmoothing.R
--- 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