You've already forked AstralRinth
forked from didirus/AstralRinth
* 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
11 lines
225 B
TypeScript
11 lines
225 B
TypeScript
export class ModrinthServersFetchError extends Error {
|
|
constructor(
|
|
message: string,
|
|
public statusCode?: number,
|
|
public originalError?: Error,
|
|
) {
|
|
super(message)
|
|
this.name = 'ModrinthFetchError'
|
|
}
|
|
}
|