Capture errors in scripts?

kjoneskjones Global Mapper UserPosts: 5
edited May 2015 in GM Script Language
Hello,
I am writing a GM script (GM v16.2) to import several layers of data and export
an area out. I would like to be able to capture errors so that the script can gracefully
exit and clean up after itself if an error occurs at either an import or export step. I
have a logfile set up and can see GM errors print out there (ex: import location was
invalid and so got an error), but is there any method to capture the error so the script
does not continue to execute?

Thank you.
Sign In or Register to comment.