Skip to content

Commit

Permalink
testing looping
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines committed Jun 10, 2024
1 parent 9ece25e commit 8eda7c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/scripts/validate-redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ module.exports = {
const errorMessage = '\n\n' + 'INVALID ENTRY: Please correct the error in the "' + loc +'" property of the following entry: \n' + invalidEntry + '\n\n' + 'ERROR MESSAGE: ' + error.message;

errors.push(errorMessage)
console.log(redirects)
redirects = redirects.splice(error.instancePath.slice(1, -7))
console.log(redirects)

validateEntries(redirects)
// validateEntries(redirects)
} else if (valid && errors.length > 0) {
return errors.stringify();
}
Expand Down

0 comments on commit 8eda7c7

Please sign in to comment.