This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push: new b52e8dad _url and _status are obsolete; use the functions instead b52e8dad is described below commit b52e8dadee4a2be0359d8f7861eca326158a0804 Author: Sebb <s...@apache.org> AuthorDate: Thu Apr 18 10:58:17 2024 +0100 _url and _status are obsolete; use the functions instead --- tools/scan-page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/scan-page.js b/tools/scan-page.js index e75372c8..7d184ccf 100755 --- a/tools/scan-page.js +++ b/tools/scan-page.js @@ -55,9 +55,9 @@ if (!isASFhost(inithost)) { } }); let result = await page.goto(target); - let status = result._status; // now seems to be null if it completed OK? + let status = result.status(); if (status && status != 200) { - let url = result._url; + let url = result.url(); let error = `Status ${status} for ${url}`; throw new Error(error); }