If I call next({error: "Error"}) within any controller i'd expect sails to handle it by the default error (500) middleware. However in this project this doesn't happen, instead I get an [object Object] output.
Any ideas what may be causing this misbehaviour?
Thanks!.