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:
parent
13b8347fdd
commit
056d396b59
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue