Error handling in Mikrotik scripts
UPDATE as of RouterOS v6.2
You can now create a do
block with an error handler:
:do {
/tool fetch $url
:put "Fetch OK"
} on-error={ :put "Fetch ERROR"};
You can now create a do
block with an error handler:
:do {
/tool fetch $url
:put "Fetch OK"
} on-error={ :put "Fetch ERROR"};