feat: reimplement error handling improvements w/o polling (#3942)

* Reapply "fix: error handling improvements (#3797)"

This reverts commit e0cde2d6ff.

* fix: polling issues

* fix: circuit breaker logic for spam

* fix: remove polling & ping test node instead

* fix: remove broken url from debugging

* fix: show error information display if node access fails in fs module
This commit is contained in:
IMB11
2025-07-08 18:40:44 +01:00
committed by GitHub
parent f256ef43c0
commit 7a12c4d5e2
9 changed files with 504 additions and 280 deletions

View File

@@ -54,6 +54,6 @@ export class ModrinthServerError extends Error {
}
super(errorMessage)
this.name = 'PyroServersFetchError'
this.name = 'ModrinthServersFetchError'
}
}

View File

@@ -5,6 +5,6 @@ export class ModrinthServersFetchError extends Error {
public originalError?: Error,
) {
super(message)
this.name = 'PyroFetchError'
this.name = 'ModrinthFetchError'
}
}