diff --git a/iopath/common/file_io.py b/iopath/common/file_io.py index f7d14db..99ef373 100644 --- a/iopath/common/file_io.py +++ b/iopath/common/file_io.py @@ -323,7 +323,7 @@ async def my_function(): # Restrict mode until `NonBlockingIO` has async read feature. valid_modes = {"w", "a", "b"} if not all(m in valid_modes for m in mode): - raise ValueError("`opena` mode must be write or append") + raise ValueError(f"`opena` mode must be write or append for path {path}") # TODO: Each `PathHandler` should set its own `self._buffered` # parameter and pass that in here. Until then, we assume no