UNPKG

@tomei/product

Version:

NestJS package for product module

13 lines 441 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.throwException = throwException; const common_1 = require("@nestjs/common"); function throwException(err) { if (err.response || err instanceof common_1.BadRequestException) { throw err; } else { throw new common_1.HttpException('Something went wrong. Please see application log.', 500); } } //# sourceMappingURL=error.js.map