Add in message about twitter authorization being down temporarily to error handler

pull/311/head
terakilobyte 2015-04-14 16:17:58 -04:00
parent a6d5721458
commit 18bdefbfac
1 changed files with 4 additions and 1 deletions

5
app.js
View File

@ -615,7 +615,10 @@ if (process.env.NODE_ENV === 'development') {
var accept = accepts(req); var accept = accepts(req);
var type = accept.type('html', 'json', 'text'); var type = accept.type('html', 'json', 'text');
var message = 'oops! Something went wrong. Please try again later.'; var message = 'oops! Something went wrong. Please try again later.' +
' Twitter authentication is currently unavailable for FreeCodeCamp.' +
' We are working with Twitter to restore functionality' +
' as soon as possible.';
console.log('ERROR!!', err); console.log('ERROR!!', err);
if (type === 'html') { if (type === 'html') {
req.flash('errors', { msg: message }); req.flash('errors', { msg: message });