Fix crash that wasn't a crash

This commit is contained in:
Jarred Sumner
2022-02-12 02:42:39 -08:00
parent eb93ae0d26
commit e72264608b
2 changed files with 2 additions and 3 deletions

View File

@@ -6297,10 +6297,9 @@ pub const PackageManager = struct {
\\
\\<r><b>Examples:<r>
\\
\\ bun add -g {s}
\\ bun add {s}
\\ bun add {s}
\\ bun add {s}
\\ bun add -g git-peek
\\
, .{ examples_to_print[0], examples_to_print[1], examples_to_print[2] });

View File

@@ -320,7 +320,7 @@ pub noinline fn globalError(err: anyerror) noreturn {
Output.flush();
Global.exit(1);
},
error.InstallFailed => {
error.InvalidArgument, error.InstallFailed => {
Global.exit(1);
},
error.SystemFdQuotaExceeded => {