Fix misleading error message for invalid civitai api key or early access deny

This commit is contained in:
Will Miao
2025-05-15 13:46:46 +08:00
parent a562ba3746
commit c193c75674

View File

@@ -512,7 +512,7 @@ class ApiRoutes:
logger.warning(f"Early access download failed: {error_message}")
return web.Response(
status=401, # Use 401 status code to match Civitai's response
text=f"Early Access Restriction: {error_message}"
text=error_message
)
return web.Response(status=500, text=error_message)