Skip to content

Commit

Permalink
console logs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaumanyosa committed Sep 15, 2020
1 parent 069c087 commit 2db502b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions jobs-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,18 @@ exports.addJobs = async (jobs) => {
if (error.response) {
//Request made but server response different of 2xx
console.log(
"addJob error.response.data TITLE = ",
"addJobs error.response.data TITLE = ",
error.response.data.title
);
console.log("addJob error.response.status = ", error.response.status);
console.log("addJob error.response.headers = ", error.response.headers);
console.log("addJobs error.response = ", error.response);
console.log("addJobs error.response.status = ", error.response.status);
console.log("addJobs error.response.headers = ", error.response.headers);
} else if (error.request) {
// Request made but no response received
console.log("addJob error request = ", error.request);
console.log("addJobs error request = ", error.request);
} else {
// Something happened in setting up the request and triggered an Error
console.log("addJob error", error.message);
console.log("addJobs error", error.message);
}
}
};

0 comments on commit 2db502b

Please sign in to comment.