fixed warnings from eslint

This commit is contained in:
Altair-sh
2026-09-13 23:50:59 +02:00
parent 656bc318d6
commit e9ede28098
11 changed files with 91 additions and 54 deletions
+7
View File
@@ -0,0 +1,7 @@
/**
* Extracts a readable message from an unknown thrown value, since anything
* (not just an Error) can be thrown and caught.
*/
export function getMsgFromError(err: unknown): string {
return err instanceof Error ? err.message : String(err)
}