0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

fix: add logic to catch clause (#1183)

This commit is contained in:
Daniel Ruf 2019-01-15 09:29:04 +01:00 committed by Juan Picado @jotadeveloper
parent 13b8347fdd
commit 056d396b59

View file

@ -3,6 +3,7 @@
import _ from 'lodash';
import {addScope, addGravatarSupport, deleteProperties, sortByName, DIST_TAGS, parseReadme} from '../../../lib/utils';
import {allow} from '../../middleware';
import logger from '../../../lib/logger';
import type {Router} from 'express';
import type {
IAuth,
@ -45,6 +46,7 @@ function addPackageWebApi(route: Router, storage: IStorageHandler, auth: IAuth)
permissions.push(pkg);
}
} catch (err) {
logger.logger.error({name: pkg.name, error: err}, 'permission process for @{name} has failed: @{error}');
throw err;
}
}