Skip to content

Commit

Permalink
also keep log
Browse files Browse the repository at this point in the history
  • Loading branch information
FriederikeHanssen committed Jul 25, 2024
1 parent 36499f3 commit d3ea81c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/local/seqera_runs_dump/functions.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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)

}
Expand Down

0 comments on commit d3ea81c

Please sign in to comment.