Fine-tune the script to reproduce the bug

This commit is contained in:
Pothi Kalimuthu 2025-06-10 12:40:45 +05:30
parent a92b2120b2
commit 3262a68a25
No known key found for this signature in database
GPG key ID: 57069303D36E3093

View file

@ -6,8 +6,12 @@
# 5. On ideal conditions, we'd get "A friendly message" in the log
# 6. Due to bug, we get nothing we email sending fails upon DNS failure.
:do {
/tool e-mail send to=kpothi@gmail.com body="Body Message" subject="Sample subject"
} on-error={ :log error "A friendly message" }
# :do {
# /tool e-mail send to=kpothi@gmail.com body="Body Message" subject="Sample subject"
# } on-error={ :log error "A friendly message" }
:log warn "This message should not be shown"
:onerror errMsg in={
/tool e-mail send to=name@example.com body="msg" subject="test"
} do={ :error "Email sending failure: $errMsg" }
:log warn "This message should not be shown, if email sending fails upon DNS failure."