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)