mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 09:53:01 +08:00
Improve error message and use check_exit() instead of check_throw()
This commit is contained in:
parent
fa3f9dd962
commit
f6e4c2968a
@ -86,7 +86,7 @@ namespace vcpkg::Commands::Import
|
||||
const fs::path project_directory(args.command_arguments[2]);
|
||||
|
||||
auto pghs = Paragraphs::get_paragraphs(control_file_path);
|
||||
Checks::check_throw(pghs.size() == 1, "Invalid control file for package");
|
||||
Checks::check_exit(pghs.size() == 1, "Invalid control file %s for package", control_file_path.generic_string());
|
||||
|
||||
StatusParagraph spgh;
|
||||
spgh.package = BinaryParagraph(pghs[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user