fix: refs #7404 fix error message
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Pablo Natek 2024-08-05 15:42:21 +02:00
parent f148635c68
commit 0e7272f911
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ module.exports = Self => {
await merger.add(new Uint8Array(pdfBuffer[0])); await merger.add(new Uint8Array(pdfBuffer[0]));
} }
if (!merger._doc) throw new UserError('The entry not have stickers'); if (!merger._doc) throw new UserError('The entry does not have stickers');
return [await merger.saveAsBuffer(), 'application/pdf', `filename="entry-${id}.pdf"`]; return [await merger.saveAsBuffer(), 'application/pdf', `filename="entry-${id}.pdf"`];
}; };
}; };