mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
throwException instead of throwing exceptions manually (includes stacktrace)
This commit is contained in:
@@ -31,7 +31,7 @@ function pad(data) {
|
||||
|
||||
function encrypt(key, iv, plainText) {
|
||||
if (!key) {
|
||||
throw new Error("No data key!");
|
||||
throwError("No data key!");
|
||||
}
|
||||
|
||||
const plainTextBuffer = Buffer.from(plainText);
|
||||
|
||||
Reference in New Issue
Block a user