Hi,
I'm trying to handle errors in mikrotik scripts, and I have found the command do/ on-error in the wiki, as it follows:
:do {
:put [:resolve www.example.com];
} on-error={ :put "resolver failed"};
I have done my code and tested copying and pasting in the console and it works, but when I put in an .rsc file and I execute it with the import command, it doesn't work. I get the message "Script file loaded and executed successfully", but I know that it is not true because the script has not done what it should have done.
Does anyone how to handle errors in an rsc file using this command? (My version of routeros is 6.9 and the architecture is mipsbe)
Thank you very much!