Skip to content

Commit

Permalink
Minor fiw error message: correct arg name
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric25 committed May 23, 2024
1 parent a35ac77 commit 50ccdd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/lib/dataProtectorCore/getProtectedData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50ccdd5

Please sign in to comment.