Closed nwsparks closed 6 years ago
Greets, @nwsparks --
Ah, yes, I can see how that is problematic. I will look into enhancing the module such it returns info about the "real" error that happens, not some assumption about what happened. Thanks for the sample snippet, too.
The functions are throwing custom errors rather than passing the original error back out which is problematic. I ran into an issue when trying to wrap your module into another function where the drsrule functions were failing because I wasn't importing the vmware module into the global scope. So rather than the error displaying what was really happening (get-vm command not found) it was saying the vm itself wasn't found which was not the issue at all.
I changed the below with a possible alternative