Closed bcpmihail closed 3 months ago
Additional findings
Discussed with @Michaelpalacce that more specific error messages are needed, however throwing errors is a breaking change, agreed to log errors instead via System.error() by default. Implemented as additional onError parameter, providing the option to change the default behaviour (e.g. to avoid flooding the logs with Errors when trying several potential locations for an Action).
Description
When VROES.import().from() is used with invalid , it throws an Unknown error, which cannot be caught in a try/catch block (see attached screenshot).
Steps to Reproduce
var res; try { res = VROES.import("bla").from("bloo"); } catch (e) { throw new Error("Caught unexpected error: " + e); } return res;