* Reapply "fix: error handling improvements (#3797)" This reverts commit e0cde2d6ff1187b2ee2346ec6aea67a3190573cd. * 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'
|
|
}
|
|
}
|