From 040620344ee8901582d944dbd04f8167f0a6cbc0 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 10:23:36 -0300 Subject: `answer z` quotes `z`, a bare `name` says it names nothing, and `Repl klingon` is invalid (EINVAL), its message citing no doc path A refused answer quoted the word `answer`, not the choice refused. A `name` with nothing after it was an unknown control message. A Repl of no such language failed EIO with a pointer into the reference; it now says `invalid language` (EINVAL, here and through a mount) and how many more there are. A builtin's failure that says invalid anywhere is EINVAL, as 9ns reads it. Co-Authored-By: Claude Opus 5.5 --- src/builtins.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/builtins.zig') diff --git a/src/builtins.zig b/src/builtins.zig index 907650bd..b9cf4840 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -1368,7 +1368,7 @@ pub const Repl = struct { // A few, whole, and where the rest are: a list cut to fit the // row would end mid-word. var w = std.Io.Writer.fixed(&buf); - w.print("Repl: no language \"{s}\"; - or one like", .{@import("Messages.zig").clip(arg, 24)}) catch {}; + w.print("Repl: invalid language \"{s}\"; - or one like", .{@import("Messages.zig").clip(arg, 24)}) catch {}; // Those that start as the word does first, a misspelling's // likeliest meaning (pithon: python). var shown: usize = 0; @@ -1382,7 +1382,7 @@ pub const Repl = struct { shown += 1; } }; - w.print(" ({d} more: docs/typ/reference.typ, REPLs)", .{known - shown}) catch {}; + w.print(" ({d} more)", .{known - shown}) catch {}; return c.p.reportFailure(c.id, w.buffered()); }; if (pane.repl) |r| if (r.lang == lang) -- cgit v1.3