add missing ncerror get context

This commit is contained in:
Fendy Heryanto
2025-12-16 01:39:59 +00:00
parent 3767cdbac2
commit c1e992bc90

View File

@@ -291,8 +291,9 @@ export class DataAttachmentV3Service {
generateThumbnailAttachments.push(processedAttachment);
}
} catch (error) {
NcError.unprocessableEntity(
`Failed to process base64 attachment: ${error}`,
this.logger.error(`${error?.constructor?.name}: ${error?.message}`);
NcError.get(context).unprocessableEntity(
`Failed to process base64 attachment`,
);
}