diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 17:27:30 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 63d584a0ba7806759f7139e87f45e411c9a1573d (patch) | |
| tree | 00ec42e25dfcc0497162511041cc88d757ff9190 /src/gui/gui.zig | |
| parent | cf45be79a5ab96d3b81078e7e5e2ba58bd5e5cee (diff) | |
| download | pardes-63d584a0ba7806759f7139e87f45e411c9a1573d.tar.gz pardes-63d584a0ba7806759f7139e87f45e411c9a1573d.zip | |
A Save the host cannot do fails the 9P write that asked for it, and the log names the path and why
The write answered ok and the pane stayed dirty, with `save: AccessDenied` on its message row: a script saw success. The failure now says `Save <path>: <why>`, and a 9P write that waited on the save fails with EIO and that text, logged as an err record.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/gui/gui.zig')
| -rw-r--r-- | src/gui/gui.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 5bc1ea6d..84ec1c5c 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -4422,7 +4422,7 @@ fn killJob(ctx: ?*anyopaque, pane: u8) bool { fn writeFile(ctx: ?*anyopaque, pane: u8, path: []const u8, bytes: []const u8) void { const s = shellOf(ctx); filesystem.write(s.core, path, bytes) catch |err| - return s.core.saveFailed(pane, "save", err); + return s.core.saveFailed(pane, path, err); if (s.core.panes[pane]) |pane_state| if (pane_state.file) |f| { if (std.mem.eql(u8, f.path, path)) if (s.watches[pane]) |*w| if (w.serial == pane_state.serial) switch (w.generation) { |
