From f6e4c2968a63b5b90c5bf27d5bcc7be25faa6968 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 22 Feb 2017 15:41:09 -0800 Subject: Improve error message and use check_exit() instead of check_throw() --- toolsrc/src/commands_import.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolsrc/src/commands_import.cpp b/toolsrc/src/commands_import.cpp index 4b71fc290..33cf8a4f4 100644 --- a/toolsrc/src/commands_import.cpp +++ b/toolsrc/src/commands_import.cpp @@ -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]); -- cgit v1.2.3