Merge branch 'master' of https://github.com/FreeCodeCamp/freecodecamp
This commit is contained in:
7
app.js
7
app.js
@ -33,6 +33,7 @@ var express = require('express'),
|
||||
connectAssets = require('connect-assets'),
|
||||
request = require('request'),
|
||||
|
||||
|
||||
/**
|
||||
* Controllers (route handlers).
|
||||
*/
|
||||
@ -614,7 +615,11 @@ if (process.env.NODE_ENV === 'development') {
|
||||
var accept = accepts(req);
|
||||
var type = accept.type('html', 'json', 'text');
|
||||
|
||||
var message = 'opps! 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 });
|
||||
return res.redirect('/');
|
||||
|
Reference in New Issue
Block a user