mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-20 21:35:43 +02:00
Fine-tune the script to reproduce the bug
This commit is contained in:
parent
a92b2120b2
commit
3262a68a25
1 changed files with 8 additions and 4 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue