Improve error message and use check_exit() instead of check_throw()

This commit is contained in:
Alexander Karatarakis 2017-02-22 15:41:09 -08:00
parent fa3f9dd962
commit f6e4c2968a

View File

@ -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]);