fac-13 / HyGiJeJe

Web app with 2 api's
1 stars 0 forks source link

Console.log in logic.js - error message #37

Closed carolineapp closed 6 years ago

carolineapp commented 6 years ago

You have this line else { console.log("Status code" + xhr.status); }

Instead of doing a console.log, this is the perfect place for you to instead put an error message in the page saying 'Sorry there is a problem with the movie database'.

This way the user knows there is problem, instead of nothing happening.

GiuliaTeggi commented 6 years ago

Thank you, we've added an error message. ;)