fix: error handling improvements (#3797)

* fix: error handling improvements

* refactor: error info cards

* refactor: PyroError -> ModrinthError

* fix: lint

* fix: idiot

---------

Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
IMB11
2025-06-16 18:34:18 +01:00
committed by GitHub
parent 0a9ffd3dc8
commit 706976439d
7 changed files with 398 additions and 198 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'
}
}