From 50ccdd5facc8f6bb07466016dab102e4abe965f0 Mon Sep 17 00:00:00 2001 From: Cedric Nicoloso Date: Thu, 23 May 2024 17:37:12 +0200 Subject: [PATCH] Minor fiw error message: correct arg name --- packages/sdk/src/lib/dataProtectorCore/getProtectedData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/lib/dataProtectorCore/getProtectedData.ts b/packages/sdk/src/lib/dataProtectorCore/getProtectedData.ts index c18117562..36319bbba 100644 --- a/packages/sdk/src/lib/dataProtectorCore/getProtectedData.ts +++ b/packages/sdk/src/lib/dataProtectorCore/getProtectedData.ts @@ -44,7 +44,7 @@ export const getProtectedData = async ({ ensureSearchableDataSchemaIsValid(requiredSchema); vRequiredSchema = requiredSchema; } catch (e: any) { - throw new ValidationError(`schema is not valid: ${e.message}`); + throw new ValidationError(`requiredSchema is not valid: ${e.message}`); } const vPage = positiveNumberSchema().label('page').validateSync(page); const vPageSize = numberBetweenSchema(10, 1000)