LibWeb: Improve NotSupported error message for normalize_an_algorithm

This commit is contained in:
stelar7 2024-03-27 19:24:33 +01:00 committed by Andrew Kaster
commit 069295d132
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00

View file

@ -100,7 +100,7 @@ WebIDL::ExceptionOr<NormalizedAlgorithmAndParameter> 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