Community discussions

MikroTik App
 
javierc
newbie
Topic Author
Posts: 36
Joined: Sat Aug 03, 2013 4:29 am

How to identify error with Catch run-time errors?

Mon May 02, 2016 7:02 pm

Hi, I have testing this code and it works, but the problem with large code is not can show wich is the error or the point of error:
:do {
      :put [:resolve www.example.com];
} on-error={ :put "resolver failed"};
:put "lala" 
output:
resolver failed
lala
This is from http://wiki.mikrotik.com/wiki/Manual:Sc ... #Functions

Anybody know how can I know the text error and the point of error?

Regards
 
javierc
newbie
Topic Author
Posts: 36
Joined: Sat Aug 03, 2013 4:29 am

Re: How to identify error with Catch run-time errors?

Mon May 30, 2016 2:22 pm

Hi, normally other lenguages have properties or functions to identify the text error. Os this way for catch errors, when you are writing code for any script is very difficult found the error, and many times is needed deactivate al least to know the error becouse with this catch error you only know an error have ocurred.

The people of Mikrotik can look for any system to edit the scripts better than the script window, the letter is very small and is difficult to bleed the code and look for search for opening and closing brackets, can be much improved.

Regards

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot], Jörg, regisc and 39 guests