mirror of
https://github.com/gchq/CyberChef
synced 2025-12-23 11:43:39 +00:00
Changed all error returns to OperationErrors
This commit is contained in:
@@ -41,7 +41,7 @@ class CartesianProduct extends Operation {
|
||||
* Validate input length
|
||||
*
|
||||
* @param {Object[]} sets
|
||||
* @throws {Error} if fewer than 2 sets
|
||||
* @throws {OperationError} if fewer than 2 sets
|
||||
*/
|
||||
validateSampleNumbers(sets) {
|
||||
if (!sets || sets.length < 2) {
|
||||
|
||||
Reference in New Issue
Block a user