change wording of output

This commit is contained in:
Hugo Di Francesco 2020-01-13 15:46:03 +00:00
parent 2ed2ea5ca1
commit d681750ba2

View file

@ -59,12 +59,12 @@ async function isWorkingUrl(url) {
try {
const statusCode = await getStatusCode(url);
if (statusCode < 200 || statusCode >= 300) {
core.error(`URL: "${url}" failed with status: ${statusCode}`);
core.error(`Ping to "${url}" failed with status: ${statusCode}`);
return false;
}
return true;
} catch (e) {
core.error(`URL: "${url}" failed with error: ${e}`);
core.error(`Ping to "${url}" failed with error: ${e}`);
return false;
}
}