diff --git a/src/platforms/curseforge/curseforge-error.ts b/src/platforms/curseforge/curseforge-error.ts index ce7b08f..62dd650 100644 --- a/src/platforms/curseforge/curseforge-error.ts +++ b/src/platforms/curseforge/curseforge-error.ts @@ -23,7 +23,7 @@ export interface CurseForgeError { export function isCurseForgeError(error: unknown): error is CurseForgeError { const e = error as CurseForgeError; return ( - e && + !!e && typeof e.errorCode === "number" && typeof e.errorMessage === "string" );