diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-22 15:41:09 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-22 15:41:09 -0800 |
| commit | f6e4c2968a63b5b90c5bf27d5bcc7be25faa6968 (patch) | |
| tree | 138f462a5c31bdf24364cb17ea382b0dee3a9190 /toolsrc/src/commands_import.cpp | |
| parent | fa3f9dd9628ebafd3ba65fb3abde6c1d6f0448fc (diff) | |
| download | vcpkg-f6e4c2968a63b5b90c5bf27d5bcc7be25faa6968.tar.gz vcpkg-f6e4c2968a63b5b90c5bf27d5bcc7be25faa6968.zip | |
Improve error message and use check_exit() instead of check_throw()
Diffstat (limited to 'toolsrc/src/commands_import.cpp')
| -rw-r--r-- | toolsrc/src/commands_import.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |
