From 8fdade79daffaa4b5b42c90b80df3b8604e97b32 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 13 Dec 2021 18:45:08 +0100 Subject: refactor(ext/crypto): generateKey rust cleanup (#13069) --- ext/crypto/shared.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/crypto/shared.rs') 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>) -> AnyError { custom_error("DOMExceptionNotSupportedError", msg) } +pub fn operation_error(msg: impl Into>) -> AnyError { + custom_error("DOMExceptionOperationError", msg) +} + pub fn unsupported_format() -> AnyError { not_supported_error("unsupported format") } -- cgit v1.2.3