Skip to content

Commit

Permalink
Also fix the crash message from microsoft/vcpkg#41120 .
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed Sep 25, 2024
1 parent 67cc56a commit 1d49b00
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/vcpkg/commands.add-version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,11 @@ namespace vcpkg
if (!scfl)
{
msg::println(Color::error, maybe_scfl.error());
Checks::check_exit(VCPKG_LINE_INFO, !add_all);
if (!add_all)
{
Checks::exit_fail(VCPKG_LINE_INFO);
}

continue;
}

Expand All @@ -509,7 +513,11 @@ namespace vcpkg
.append(msgAddVersionFormatPortSuggestion, msg::command_line = command_line)
.append_raw('\n')
.append(msgSeeURL, msg::url = docs::format_manifest_command_url));
Checks::check_exit(VCPKG_LINE_INFO, !add_all);
if (!add_all)
{
Checks::exit_fail(VCPKG_LINE_INFO);
}

continue;
}
}
Expand Down

0 comments on commit 1d49b00

Please sign in to comment.