handle errors normally in addFolder modal

This commit is contained in:
Brian Gough 2018-01-17 12:11:02 +00:00
parent 9538df1644
commit 9b8ce78eb9

View file

@ -105,7 +105,7 @@ module.exports = EditorHttpController =
else if error?.message == 'invalid element name' else if error?.message == 'invalid element name'
res.status(400).json(req.i18n.translate('invalid_file_name')) res.status(400).json(req.i18n.translate('invalid_file_name'))
else if error? else if error?
res.status(500).json(req.i18n.translate('generic_something_went_wrong')) next(error)
else else
res.json doc res.json doc