diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-09 03:29:30 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-09 03:30:37 -0300 |
| commit | 446292e15d56c9c248dae5d6fde1be3a83ade82e (patch) | |
| tree | 859d8be8a92a18011034e614324fa1af5c99139e /src/exec.zig | |
| parent | aabbccba49772cf73c7e35ae470245e9fda9d6ff (diff) | |
| download | pardes-446292e15d56c9c248dae5d6fde1be3a83ade82e.tar.gz pardes-446292e15d56c9c248dae5d6fde1be3a83ade82e.zip | |
idioms: the 9P tree's swallows decided: a directory read stages every entry or answers ENOMEM (stageDirent and sources.stage return error{OutOfMemory}, readdir's entries made by stageDir, an /os listing whose buffer fills ends there), a pane's tag read through tagOf fails by name (a read or an event write answers ENOMEM, a stat's length and ctl's line say 0), a pane that cannot close (removePane's nine swallowing callers) and a /pager text that cannot go in (fillClosedPagers) are said on their pane, and Queue.push says once why a lost record is not said
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/exec.zig')
| -rw-r--r-- | src/exec.zig | 4 |
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 |
