The handler adds its own error message prefix
Error occurred in handler for 'generateImageThumbnail': Error: This feature in not available on the current OS/arch
This commit is contained in:
parent
5ffc2f20fd
commit
52909f6f21
2 changed files with 2 additions and 2 deletions
|
@ -1021,7 +1021,7 @@ const withThumbnail = async (
|
|||
fileTypeInfo,
|
||||
);
|
||||
} catch (e) {
|
||||
if (e.message == CustomErrorMessage.NotAvailable) {
|
||||
if (e.message.endsWith(CustomErrorMessage.NotAvailable)) {
|
||||
moduleState.isNativeImageThumbnailGenerationNotAvailable = true;
|
||||
} else {
|
||||
log.error("Native thumbnail generation failed", e);
|
||||
|
|
|
@ -319,7 +319,7 @@ export const getRenderableImage = async (fileName: string, imageBlob: Blob) => {
|
|||
try {
|
||||
return await nativeConvertToJPEG(imageBlob);
|
||||
} catch (e) {
|
||||
if (e.message == CustomErrorMessage.NotAvailable) {
|
||||
if (e.message.endsWith(CustomErrorMessage.NotAvailable)) {
|
||||
moduleState.isNativeJPEGConversionNotAvailable = true;
|
||||
} else {
|
||||
log.error("Native conversion to JPEG failed", e);
|
||||
|
|
Loading…
Add table
Reference in a new issue