sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

fix(error-handling): Use addError instead of throw #547

Closed lkipke closed 4 years ago

lkipke commented 4 years ago

Change Summary

This calls interpreter.addError instead of throw new BrsError in several spots so that we get these runtime errors printed out to the console when they occur. Also, it removes a finally block so that we are explicitly swallowing errors, rather than doing it implicitly.