Skip to content

Commit

Permalink
Convert exception obj to string (#7148)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschcolnicov authored Dec 3, 2024
1 parent 86dd7be commit d588e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subworkflows/nf-core/utils_nfcore_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def completionEmail(summary_params, email, email_on_fail, plaintext_email, outdi
log.info("-${colors.purple}[${workflow.manifest.name}]${colors.green} Sent summary e-mail to ${email_address} (sendmail)-")
}
catch (Exception msg) {
log.debug(msg)
log.debug(msg.toString())
log.debug("Trying with mail instead of sendmail")
// Catch failures and try with plaintext
def mail_cmd = ['mail', '-s', subject, '--content-type=text/html', email_address]
Expand Down

0 comments on commit d588e57

Please sign in to comment.