You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
@ -224,7 +224,11 @@ export default class Resource extends BaseItem {
|
||||
masterKeyId: share && share.master_key_id ? share.master_key_id : '',
|
||||
});
|
||||
} catch (error) {
|
||||
if (error.code === 'ENOENT') throw new JoplinError(`File not found:${error.toString()}`, 'fileNotFound');
|
||||
if (error.code === 'ENOENT') {
|
||||
throw new JoplinError(
|
||||
`Trying to encrypt resource but only metadata is present: ${error.toString()}`, 'fileNotFound',
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user