Skip to content
Snippets Groups Projects
Commit 09235998 authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

add build

parent ae7c2355
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ const checkForSubFilter = (pdfBuffer) => {
"etsi.rfc3161",
];
if (!supportedTypes.includes(subFilter.trim().toLowerCase())) {
throw new errors_1.AppError("Subfilter not supported");
throw new errors_1.AppError(`Subfilter not supported - ${subFilter.trim().toLowerCase()}`);
}
};
exports.checkForSubFilter = checkForSubFilter;
......
......@@ -10,8 +10,7 @@ const verifyPDF = (pdf) => {
(0, generalUtils_1.checkForSubFilter)(pdfBuffer);
}
catch (error) {
console.log("no supported signatures found");
return null;
throw new Error(error.message);
}
try {
const { signatureStr, signedData, signatureMeta } = (0, signatureUtils_1.extractSignature)(pdfBuffer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment