Error handling for superagent improved