Skip to content

Commit 3637c84

Browse files
clean podman command errors
1 parent c1d3f68 commit 3637c84

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/SandboxClient/commands.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,18 @@ export class Command {
254254
async waitUntilComplete(): Promise<string> {
255255
await this.barrier.wait();
256256

257+
const cleaned = this.output
258+
.join("\n")
259+
.replace(
260+
/Error: failed to exec in podman container: exit status 1[\s\S]*$/,
261+
""
262+
);
263+
257264
if (this.status === "FINISHED") {
258-
return this.output.join("\n");
265+
return cleaned;
259266
}
260267

261-
throw new Error(`Command ERROR: ${this.output.join("\n")}`);
268+
throw new Error(`Command ERROR: ${cleaned}`);
262269
}
263270

264271
// TODO: allow for kill signals

0 commit comments

Comments
 (0)