fix: use 502 when enka returns unexpected error
This commit is contained in:
+1
-1
@@ -391,7 +391,7 @@ export function card(app: App) {
|
|||||||
"Too many requests to enka.network, please try again later",
|
"Too many requests to enka.network, please try again later",
|
||||||
);
|
);
|
||||||
else if (err instanceof InternalError)
|
else if (err instanceof InternalError)
|
||||||
return status(500, "Internal server error");
|
return status(502, "Internal server error");
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user