diff options
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 41495a48..60491052 100644 --- a/src/main.zig +++ b/src/main.zig @@ -333,6 +333,14 @@ fn nativeMain(init: std.process.Init) !void { opts.file_line = t.at.line; }, .image => |t| opts.file = try arena.dupe(u8, t.path), + // Nothing of that name is there. A typo is not a reason to + // refuse to start: the session boots with one `+Errors` pane + // naming what was asked for (pardes.zig `missing_path`). The + // other arms stay `BadArgs` — a `.dir` here means `chdir` + // refused a directory that IS one, which is a permission + // problem and not a typo, and `.url`/`.pane` are targets no + // launch can act on. + .none => opts.missing_path = try arena.dupe(u8, a), else => return error.BadArgs, } } |
