Add in message about twitter authorization being down temporarily to error handler
This commit is contained in:
5
app.js
5
app.js
@ -615,7 +615,10 @@ if (process.env.NODE_ENV === 'development') {
|
||||
var accept = accepts(req);
|
||||
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);
|
||||
if (type === 'html') {
|
||||
req.flash('errors', { msg: message });
|
||||
|
Reference in New Issue
Block a user