Closed abelal83 closed 9 months ago
Thank you for the feedback! It makes me really happy to know that other people are making use of this module. This suggestion makes total sense to me. I've gone ahead and updated the module to v1.0.6 and updated the catch statements to all use your throw $_ method.
First of all, thank you very much for creating and publishing this module, fantastic work and I hope to contribute as I've got a big Meraki project coming up.
I noticed as I was testing the module and errors were being encoutered my try catch which wraps the module functions were not catching errors. Of course, this is because the functions themselves are using try catch with the error being written to host. This unfortunately prevent scripts from handling the errors.
For example, when I do the below:
I get an error written to console
What I'd prefer to do is catch the error and handle it myself.
The simplest solution is to remove all try catch code in module, or alternatively after writing to console/host
throw $_
immediately after.