From 069295d132231b88d311145be282d453d21b70f9 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Wed, 27 Mar 2024 19:24:33 +0100 Subject: [PATCH] LibWeb: Improve NotSupported error message for normalize_an_algorithm --- Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp index 5421324d20d..a19feed59b8 100644 --- a/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp +++ b/Userland/Libraries/LibWeb/Crypto/SubtleCrypto.cpp @@ -100,7 +100,7 @@ WebIDL::ExceptionOr normalize_an_algorithm(JS:: } else { // Otherwise: // Return a new NotSupportedError and terminate this algorithm. - return WebIDL::NotSupportedError::create(realm, MUST(String::formatted("Algorithm '{}' is not supported", algorithm_name))); + return WebIDL::NotSupportedError::create(realm, MUST(String::formatted("Algorithm '{}' is not supported for operation '{}'", algorithm_name, operation))); } // 8. Let normalizedAlgorithm be the result of converting the ECMAScript object represented by alg