Open WayneUong opened 8 years ago
The best way - to realize catching into the package itself.
Ive done so behavior in the fork and it saves my mind is case of chains of hooks. I don
t know, why authors don`t implement it in package, m.b. because of optimization...
Or, do you call that code on server or client?
Wrap Projects.insert
calls with try
/catch
and I believe that would catch errors throw inside its hooks.
How do I catch exceptions? This code does not print out an error, where it should throw an exception as b is undefined.