Skip to content

Commit

Permalink
fix: broken docs link in error message (#8436)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfoyle authored Oct 23, 2021
1 parent 8991e78 commit 59117c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async function validateCustomPolicies(data: CustomIAMPolicies, categoryName: str
if (!validatePolicy(data)) {
let errorMessage = `Invalid custom IAM policies in the ${resourceName} ${categoryName}.\n
Edit <project-dir>/amplify/backend/function/${resourceName}/custom-policies.json to fix
Learn more about custom IAM policies for ${categoryName}: https://docs.amplify.aws/function/custom-policies\n`;
Learn more about custom IAM policies for ${categoryName}: https://docs.amplify.aws/cli/function/#access-existing-aws-resource-from-lambda-function\n`;
validatePolicy.errors.forEach(error => (errorMessage += `${error.message}\n`));
throw new CustomPoliciesFormatError(errorMessage);
}
Expand Down

0 comments on commit 59117c2

Please sign in to comment.