We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Great error handling and use of error-first callbacks!
It looks like in your handler.js file you are sending back an error message and appropriate status code:
handler.js
res.writeHead(500, { "Content-Type": "application/json" }); res.end(JSON.stringify({ error : "Can't get the latest articles" }));
Here
But in the front end the error message is not being used and displayed to the user:
PaGiToNi/public/index.js
Lines 44 to 46 in 7a5fea2
I would somehow try and display the error (such as there has been a server error) to the user rather than console.log
console.log
The text was updated successfully, but these errors were encountered:
display error message for status 500
7fb89fc
Relates to #59
Ensure grid is on when articles are returned
73a8ad7
n1c0z
No branches or pull requests
Great error handling and use of error-first callbacks!
It looks like in your
handler.js
file you are sending back an error message and appropriate status code:Here
But in the front end the error message is not being used and displayed to the user:
PaGiToNi/public/index.js
Lines 44 to 46 in 7a5fea2
I would somehow try and display the error (such as there has been a server error) to the user rather than
console.log
The text was updated successfully, but these errors were encountered: