You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
All: Add more context to encryption errors
This commit is contained in:
@ -295,7 +295,7 @@ class EncryptionService {
|
||||
});
|
||||
} catch (error) {
|
||||
// SJCL returns a string as error which means stack trace is missing so convert to an error object here
|
||||
throw new Error(error.message);
|
||||
throw new Error(`SJCL error: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
@ -313,7 +313,7 @@ class EncryptionService {
|
||||
});
|
||||
} catch (error) {
|
||||
// SJCL returns a string as error which means stack trace is missing so convert to an error object here
|
||||
throw new Error(error.message);
|
||||
throw new Error(`SJCL error: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
@ -331,7 +331,7 @@ class EncryptionService {
|
||||
});
|
||||
} catch (error) {
|
||||
// SJCL returns a string as error which means stack trace is missing so convert to an error object here
|
||||
throw new Error(error.message);
|
||||
throw new Error(`SJCL error: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
@ -348,7 +348,7 @@ class EncryptionService {
|
||||
});
|
||||
} catch (error) {
|
||||
// SJCL returns a string as error which means stack trace is missing so convert to an error object here
|
||||
throw new Error(error.message);
|
||||
throw new Error(`SJCL error: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user