rcos / observatory-server

A project tracking dashboard for Rensselaer Center for Open Source
https://rcos.io
MIT License
14 stars 51 forks source link

Abstract handleError function in Achievement.controller.js #725

Closed aeksco closed 6 years ago

aeksco commented 6 years ago

Import the handleError function from helpers.js into achievement.controller.js and delete the handleError function defined there.

Replace the following statements to ensure proper functionality. Replace this:

    .catch(handleError(res));

With this:

    .catch((err) => handleError(res, err));
aeksco commented 6 years ago

Resolved