I am trying to find a better place to handle connection errors or any other global errors that cause the server to crash.
What is the best place to catch adapters / global errors and not cause them to fail?
In particular, I want to handle these types of errors in a graceful way:
Error spawning mySQL connection:
error: Hook failed to load: orm (Error: connect ECONNREFUSED)
error: Error encountered while loading Sails core!
error: Error: connect ECONNREFUSED
source
share