mirror of
https://github.com/fastapi/fastapi.git
synced 2026-06-19 21:08:47 -04:00
🐛 Fix failing test, update format for raised errors (#15804)
This commit is contained in:
committed by
GitHub
parent
0cd5001d0e
commit
2260afaf43
@@ -1809,8 +1809,8 @@ class _FrontendStaticFiles(StaticFiles):
|
||||
self.fallback = fallback
|
||||
if check_dir and not os.path.isdir(directory):
|
||||
raise RuntimeError(
|
||||
f"Frontend directory {directory!r} does not exist. "
|
||||
f"Resolved absolute path: {_get_resolved_absolute_path(directory)!r}"
|
||||
f"Frontend directory '{directory}' does not exist. "
|
||||
f"Resolved absolute path: '{_get_resolved_absolute_path(directory)}'"
|
||||
)
|
||||
super().__init__(
|
||||
directory=directory,
|
||||
|
||||
Reference in New Issue
Block a user