upload bug fix .

This commit is contained in:
HyeongBaeYang committed 2026-02-02 17:10:35 +09:00
1 parent e1386b891e
commit e89709ce87
5 files changed
+90 -25

No files matched your search

+2 -3
View File
@@ -304,11 +304,10 @@ def add_exception_handlers(app: FastAPI):
@app.exception_handler(status.HTTP_500_INTERNAL_SERVER_ERROR)
def internal_server_error_handler(request, exception):
# 에러 메시지 로깅 (한글 포함 가능)
logger.error(f"Internal Server Error: {exception}")
return JSONResponse(
content={"detail": "Something went wrong..."},
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
headers={
"X-Error": f"{exception}",
}
)