SamuelSau / blitzboiggbackend

1 stars 0 forks source link

TODO: Axios Error Handling #2

Closed SamuelSau closed 1 year ago

SamuelSau commented 1 year ago

Send the appropriate response to client for HTTP status codes.

Documentation

getSummonerInfo.js querySummoner.js queryMatches.js

Create error handling functions in middleware folder

SamuelSau commented 1 year ago

Inside the catch statement for querySummoner, console.log error.response and error.request, which helps us see where the error occurs.