зеркало из https://github.com/mozilla/galaxy-api.git
Merge pull request #184 from cvan/user-search-error-fix
Fixed a misleading /user/search error
This commit is contained in:
Коммит
0c1f817ba9
|
@ -78,7 +78,7 @@ module.exports = function(server) {
|
|||
// Return a single object.
|
||||
(lookup_email ? user.getUserFromEmail : user.getUserFromID)(client, lookup, function(err, obj) {
|
||||
if (err || !obj) {
|
||||
res.json(400, {error: err || lookup_email ? 'bad_email' : 'bad_id'});
|
||||
res.json(400, {error: err || (lookup_email ? 'bad_email' : 'bad_id')});
|
||||
done();
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче