From d3ea81cbeef4d1164dd4b284f1fbfce744121057 Mon Sep 17 00:00:00 2001 From: FriederikeHanssen Date: Thu, 25 Jul 2024 10:24:25 +0200 Subject: [PATCH] also keep log --- modules/local/seqera_runs_dump/functions.nf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/local/seqera_runs_dump/functions.nf b/modules/local/seqera_runs_dump/functions.nf index 17dbd16..c489b4a 100644 --- a/modules/local/seqera_runs_dump/functions.nf +++ b/modules/local/seqera_runs_dump/functions.nf @@ -60,12 +60,14 @@ Map getRunMetadata(meta, log, api_endpoint, trustStorePath, trustStorePassword) Could not get workflow details for workflow ${runId} in workspace ${meta.workspace}: ↳ Status code ${ex.response?.statusCode} returned from request to ${ex.request?.url} (authentication headers excluded) """.stripIndent() + log.error(ex) throw new ProcessException("Failed to get workflow details for workflow ${runId} in workspace ${meta.workspace}", ex) } catch (Exception ex) { log.warn """ An error occurred while getting workflow details for workflow ${runId} in workspace ${meta.workspace}: ↳ ${ex.message} """.stripIndent() + log.error(ex) throw new ProcessException("Failed to get workflow details for workflow ${runId} in workspace ${meta.workspace}", ex) }