Skip to content

Commit

Permalink
tests: fix undefined variable upon failed status code
Browse files Browse the repository at this point in the history
  • Loading branch information
sduthil committed Jan 10, 2025
1 parent 464d410 commit a7d8b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/404.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const checkUrl = async (browser, url, fromUrl) => {
.then(response => {
result = response.ok;
if (!response.ok) {
message = `Error in ${url} (from ${fromUrl}): status code ${error.response.status}`;
message = `Error in ${url} (from ${fromUrl}): status code ${response.status}`;
console.error(message);
errorUrl.push(message);
}
Expand Down

0 comments on commit a7d8b95

Please sign in to comment.