| ... | @@ -622,11 +622,13 @@ fn buildOutputType( | ... | @@ -622,11 +622,13 @@ fn buildOutputType( |
| 622 | i += 1; | 622 | i += 1; |
| 623 | const pkg_path = args[i]; | 623 | const pkg_path = args[i]; |
| 624 | | 624 | |
| 625 | const new_cur_pkg = try Package.create( | 625 | const new_cur_pkg = Package.create( |
| 626 | gpa, | 626 | gpa, |
| 627 | fs.path.dirname(pkg_path), | 627 | fs.path.dirname(pkg_path), |
| 628 | fs.path.basename(pkg_path), | 628 | fs.path.basename(pkg_path), |
| 629 | ); | 629 | ) catch |err| { |
| | 630 | fatal("Failed to add package at path {}: {}", .{ pkg_path, @errorName(err) }); |
| | 631 | }; |
| 630 | new_cur_pkg.parent = cur_pkg; | 632 | new_cur_pkg.parent = cur_pkg; |
| 631 | try cur_pkg.add(gpa, pkg_name, new_cur_pkg); | 633 | try cur_pkg.add(gpa, pkg_name, new_cur_pkg); |
| 632 | cur_pkg = new_cur_pkg; | 634 | cur_pkg = new_cur_pkg; |