mirror of
https://github.com/fastapi/fastapi.git
synced 2026-09-23 11:55:07 -04:00
🐛 Fix failing test, update format for raised errors (#15804)
This commit is contained in:
1 parent
0cd5001d0e
commit
2260afaf43
1 file changed
+2
-2
+2
-2
@@ -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