You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
All: Fixes #2591: Handle invalid UTF-8 data when encrypting
This commit is contained in:
@ -348,7 +348,9 @@ class BaseItem extends BaseModel {
|
||||
} catch (error) {
|
||||
const msg = [`Could not encrypt item ${item.id}`];
|
||||
if (error && error.message) msg.push(error.message);
|
||||
throw new Error(msg.join(': '));
|
||||
const newError = new Error(msg.join(': '));
|
||||
newError.stack = error.stack;
|
||||
throw newError;
|
||||
}
|
||||
|
||||
// List of keys that won't be encrypted - mostly foreign keys required to link items
|
||||
|
Reference in New Issue
Block a user