Skip to content

Commit 98e7357

Browse files
authored
fix some log-messages in setup.py (#331)
1 parent 634510b commit 98e7357

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _find_lib(self, lib_dir):
115115
if not lib.exists():
116116
raise RuntimeError(f"Cannot locate Slurm library in {lib_dir}")
117117

118-
print(f"Found {SLURM_LIB} library in {self.lib_dir}")
118+
print(f"Found {SLURM_LIB} library in {lib}")
119119
return lib_dir
120120

121121
@property
@@ -161,7 +161,8 @@ def check_version(self):
161161

162162
if Version(self.version) != Version(SLURM_VERSION):
163163
raise RuntimeError(
164-
f"Incorrect Slurm version detected, requires Slurm {SLURM_VERSION}"
164+
"Slurm version mismatch: "
165+
f"requires Slurm {SLURM_VERSION}, found {self.version}"
165166
)
166167

167168

0 commit comments

Comments
 (0)