We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d2e7a70 + cc19950 commit c83eb3bCopy full SHA for c83eb3b
1 file changed
hatch_rs/structs.py
@@ -117,7 +117,9 @@ def execute(self):
117
chdir(self.path)
118
119
for command in self.commands:
120
- system_call(command)
+ ret = system_call(command)
121
+ if ret != 0:
122
+ raise RuntimeError(f"hatch-rs build command failed with exit code {ret}: {command}")
123
124
# Go back to original path
125
chdir(str(cwd))
@@ -164,7 +166,10 @@ def execute(self):
164
166
library_name = f"{self.module}/{file_name}.so"
165
167
self._libraries.append(library_name)
168
copy_command = f"cp -f {file} {cwd}/{library_name}"
- system_call(copy_command)
169
+ ret = system_call(copy_command)
170
171
+ raise RuntimeError(f"hatch-rs copy command failed with exit code {ret}: {copy_command}")
172
+
173
return self.commands
174
175
def cleanup(self):
0 commit comments