From b195d67e53330def79d6df1cd4bd13faa55a14fd Mon Sep 17 00:00:00 2001 From: Puru Vijay Date: Mon, 23 Sep 2024 16:22:14 +0530 Subject: [PATCH] More accurate external link error --- scripts/checks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checks.ts b/scripts/checks.ts index c7cd294..3051c44 100644 --- a/scripts/checks.ts +++ b/scripts/checks.ts @@ -347,7 +347,7 @@ async function checkLinks() { }); if (!response.ok) { slugErrors.add({ - message: `External: Link to ${link} is broken`, + message: `External: Link to ${link} is ${response.status}:${response.statusText}`, file: path, line: lines.findIndex(line => line.includes(link)) + 1, });