# Custom warning for a specific module upon specific exitStatus

**URL:** https://community.seqera.io/t/custom-warning-for-a-specific-module-upon-specific-exitstatus/1206
**Category:** Ask for help
**Tags:** nextflow
**Created:** [September 19, 2024, 12:02pm UTC](https://community.seqera.io/t/custom-warning-for-a-specific-module-upon-specific-exitstatus/1206 "2024-09-19T12:02:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![luisa\_santus](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/luisa_santus/32/1021_2.png) [@luisa\_santus](https://community.seqera.io/u/luisa_santus)
#### Post date: [September 19, 2024, 12:02pm UTC](https://community.seqera.io/t/custom-warning-for-a-specific-module-upon-specific-exitstatus/1206/1 "2024-09-19T12:02:44Z")

</div>

Hey all 🙂

I have one tool ([kalign](https://github.com/nf-core/modules/tree/master/modules/nf-core/kalign/align)) which does not run on old cpus. I would like to ignore that specific error and let the pipeline continue, but let the user know.I handle the ignoring of the error like this: [multiplesequencealign/conf/modules.config at 0b6f89f00144ac2e380554b1b4e52a901eb2d123 · luisas/multiplesequencealign · GitHub](https://github.com/luisas/multiplesequencealign/blob/0b6f89f00144ac2e380554b1b4e52a901eb2d123/conf/modules.config#L162But) I now would like to also launch a custom warning to let the user know this is happening - does anybody have any idea how to do it?

From the workflow.nf i tried MODULE\_NAME.task.exitStatus and MODULE\_NAME.exitStatus but i get an error in both cases

Also, errorStrategy = {task.exitStatus == 132 ? ‘ignore’ && log.warn(‘Old CPU’) : ‘retry’} will not work as it tries to assign the log.warn to the error strategy

---

<div class="post-metadata">

### Author: ![luisa\_santus](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/luisa_santus/32/1021_2.png) [@luisa\_santus](https://community.seqera.io/u/luisa_santus)
#### Post date: [September 19, 2024, 2:00pm UTC](https://community.seqera.io/t/custom-warning-for-a-specific-module-upon-specific-exitstatus/1206/2 "2024-09-19T14:00:19Z")

</div>

In the end Jose fixed it this way → [Warning when kalign fails with error 132 by JoseEspinosa · Pull Request #152 · nf-core/multiplesequencealign · GitHub](https://github.com/nf-core/multiplesequencealign/pull/152)
