| ... | ... | @@ -33,10 +33,7 @@ pub fn execute(args: [][]u8) !void { |
| 33 | 33 | }); |
| 34 | 34 | |
| 35 | 35 | const entry = if (ptype == .lib) try inquirer.forString(stdout, stdin, "package entry point:", gpa, u.detct_mainfile(u.try_index([]const u8, args, 1, ""), null, name) catch |err| switch (err) { |
| 36 | | error.CantFindMain => { |
| 37 | | u.assert(false, "unable to detect package entry point", .{}); |
| 38 | | unreachable; |
| 39 | | }, |
| 36 | error.CantFindMain => null, |
| 40 | 37 | else => return err, |
| 41 | 38 | }) else null; |
| 42 | 39 | |