fix(lint): remove explicit any from check-http error handler
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 4s
Build & Deploy / 🧪 QA (push) Successful in 1m58s
Build & Deploy / 🏗️ Build (push) Successful in 4m27s
Build & Deploy / 🚀 Deploy (push) Successful in 11s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 3m16s
Build & Deploy / 🔔 Notify (push) Successful in 1s
Nightly QA / call-qa-workflow (push) Failing after 34s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 4s
Build & Deploy / 🧪 QA (push) Successful in 1m58s
Build & Deploy / 🏗️ Build (push) Successful in 4m27s
Build & Deploy / 🚀 Deploy (push) Successful in 11s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 3m16s
Build & Deploy / 🔔 Notify (push) Successful in 1s
Nightly QA / call-qa-workflow (push) Failing after 34s
This commit is contained in:
@@ -75,15 +75,14 @@ async function main() {
|
||||
);
|
||||
process.exit(0);
|
||||
}
|
||||
} catch (error: any) {
|
||||
if (error.response) {
|
||||
} catch (e: unknown) {
|
||||
if (axios.isAxiosError(e) && e.response) {
|
||||
console.error(
|
||||
`\n❌ Critical Error during Sitemap Fetch: HTTP ${error.response.status} ${error.response.statusText}`,
|
||||
`\n❌ Critical Error during Sitemap Fetch: HTTP ${e.response.status} ${e.response.statusText}`,
|
||||
);
|
||||
} else {
|
||||
console.error(
|
||||
`\n❌ Critical Error during Sitemap Fetch: ${error.message || error}`,
|
||||
);
|
||||
const errorMsg = e instanceof Error ? e.message : String(e);
|
||||
console.error(`\n❌ Critical Error during Sitemap Fetch: ${errorMsg}`);
|
||||
}
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user