fix(error): fixed error message paths

This commit is contained in:
2025-12-18 13:44:53 -05:00
parent 451b8e14a1
commit 7f9a7a2afe

View File

@@ -49,7 +49,7 @@ def serve_data_file(folder: str, filename: str):
# Check if file exists
file_path = os.path.join(folder_path, safe_filename)
if not os.path.isfile(file_path):
logger.debug(f"File not found: {file_path}")
logger.warning(f"File not found: {file_path} (configured folder: {folder_path})")
abort(404)
# Verify the resolved path is still within the allowed folder (security check)