Skip to content

Commit

Permalink
fix: add logic to catch clause (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf authored and juanpicado committed Jan 15, 2019
1 parent 13b8347 commit 056d396
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/web/endpoint/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 056d396

Please sign in to comment.