We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b21e42 commit 8c77828Copy full SHA for 8c77828
infrahub_sdk/utils.py
@@ -353,7 +353,9 @@ def write_to_file(path: Path, value: Any) -> bool:
353
354
def read_file(file_path: Path) -> str:
355
if not file_path.is_file():
356
- raise FileNotValidError(name=str(file_path.name), message=f"{file_path.name}: not found at {file_path.cwd()}")
+ raise FileNotValidError(
357
+ name=str(file_path.name), message=f"{file_path.name}: not found at {file_path.parent}"
358
+ )
359
try:
360
with Path.open(file_path, encoding="utf-8") as fobj:
361
return fobj.read()
0 commit comments