summaryrefslogtreecommitdiff
path: root/src/exec.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.zig')
-rw-r--r--src/exec.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exec.zig b/src/exec.zig
index 8e96be80..c636cc7c 100644
--- a/src/exec.zig
+++ b/src/exec.zig
@@ -419,7 +419,7 @@ fn refusedPlacement(p: *Pardes, id: usize) bool {
p.unplaced.unset(id);
// It held no weight (placeNew put every pane's rows back as they
// were): nothing else moves, a pane dragged short included.
- p.removePane(id, null) catch {};
+ p.removePane(id, null) catch |err| p.reportError(id, "open", err);
return true;
}
@@ -847,7 +847,7 @@ pub fn commandDone(p: *Pardes, id: usize, status: ?u8) void {
// failure is worth the pane.
if (pane.command_pages) {
pane.command_pages = false;
- if (status == 0) return p.removePane(id, null) catch {};
+ if (status == 0) return p.removePane(id, null) catch |err| p.reportError(id, "close", err);
}
var buf: [16]u8 = undefined;
const code = if (status) |n| std.fmt.bufPrint(&buf, "{d}", .{n}) catch unreachable else "?"; // an exit status fits 16