jessicasalmon / mmedium

3 stars 0 forks source link

error handling #52

Open Jbarget opened 7 years ago

Jbarget commented 7 years ago

https://github.com/bo-bok/mmedium/blob/master/src/routes/home.js#L8-L10

If an error comes back from the database all thats going on at the moment is a little console log. Its good to get into the habit of "passing these errors back to the user".

eg (in this case). you can create some space in your handlebars template that says: if error, render this error message

Jbarget commented 7 years ago

here too https://github.com/bo-bok/mmedium/blob/master/src/routes/post_a_story.js#L9-L12