summaryrefslogtreecommitdiff
path: root/ext/crypto/shared.rs
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2021-12-13 18:45:08 +0100
committerGitHub <noreply@github.com>2021-12-13 18:45:08 +0100
commit8fdade79daffaa4b5b42c90b80df3b8604e97b32 (patch)
treeff0b38cbb922bdebebf1a58b9ef567dd38afba41 /ext/crypto/shared.rs
parent308813ae29763512a8be1044b31b8d5dad36c38c (diff)
refactor(ext/crypto): generateKey rust cleanup (#13069)
Diffstat (limited to 'ext/crypto/shared.rs')
-rw-r--r--ext/crypto/shared.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/crypto/shared.rs b/ext/crypto/shared.rs
index 1af0169ef..0b70db24e 100644
--- a/ext/crypto/shared.rs
+++ b/ext/crypto/shared.rs
@@ -100,6 +100,10 @@ pub fn not_supported_error(msg: impl Into<Cow<'static, str>>) -> AnyError {
custom_error("DOMExceptionNotSupportedError", msg)
}
+pub fn operation_error(msg: impl Into<Cow<'static, str>>) -> AnyError {
+ custom_error("DOMExceptionOperationError", msg)
+}
+
pub fn unsupported_format() -> AnyError {
not_supported_error("unsupported format")
}