mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
misc fixes, add ability to attach local auth to social user
This commit is contained in:
@@ -36,7 +36,7 @@ export default function errorHandler (err, req, res, next) {
|
||||
|
||||
// Handle errors by express-validator
|
||||
if (Array.isArray(err) && err[0].param && err[0].msg) {
|
||||
responseErr = new BadRequest('Invalid request parameters.');
|
||||
responseErr = new BadRequest(res.t('invalidReqParams'));
|
||||
responseErr.errors = err; // TODO format
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user