Can you use the JavaScript promise chaining pattern here. It makes the code easier to write and means you only need a single error handler.