| author | |
| committer | |
| log | c3957c42b6ef932346f7d4fe11b5eeda25046e90 |
| tree | e299b7912665d57340839ee8ebf2e7deaa349f79 |
| parent | 3027dfad1d9d8e7bb8c647893b82197c3101932c |
1 files changed, 1 insertions(+), 4 deletions(-)
src/cmd/init.zig+1-4| ... | @@ -33,10 +33,7 @@ pub fn execute(args: [][]u8) !void { | ... | @@ -33,10 +33,7 @@ pub fn execute(args: [][]u8) !void { |
| 33 | }); | 33 | }); |
| 34 | 34 | ||
| 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) { | 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 => { | 36 | error.CantFindMain => null, |
| 37 | u.assert(false, "unable to detect package entry point", .{}); | ||
| 38 | unreachable; | ||
| 39 | }, | ||
| 40 | else => return err, | 37 | else => return err, |
| 41 | }) else null; | 38 | }) else null; |
| 42 | 39 |