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 a39f378 commit 2a2fdb8Copy full SHA for 2a2fdb8
src/pymcnp/utils/_object.py
@@ -53,7 +53,7 @@ def from_mcnp_file(cls, filename: pathlib.Path | str):
53
filename = pathlib.Path(filename)
54
55
if not filename.is_file():
56
- raise errors.CliError(errors.CliCode.SEMANTICS_PATH)
+ raise errors.CliError(errors.CliCode.SEMANTICS_PATH, filename)
57
58
source = filename.read_text()
59
@@ -70,6 +70,6 @@ def to_mcnp_file(self, filename: str | pathlib.Path):
70
71
72
73
74
75
filename.write_text(self.to_mcnp())
0 commit comments