diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-07 17:31:41 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-07 17:31:41 -0800 |
| commit | c91d8e41b60653b652b11c641f7a5b3d3eab7f6b (patch) | |
| tree | 6e81f76a7f1067bab8efdbb38e7b25338499f87f /toolsrc/src/main.cpp | |
| parent | 7a1bc07142577cce32ee88c8d8ef60b386d19b6a (diff) | |
| download | vcpkg-c91d8e41b60653b652b11c641f7a5b3d3eab7f6b.tar.gz vcpkg-c91d8e41b60653b652b11c641f7a5b3d3eab7f6b.zip | |
Introduce vcpkg_info.h/cpp
Diffstat (limited to 'toolsrc/src/main.cpp')
| -rw-r--r-- | toolsrc/src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/toolsrc/src/main.cpp b/toolsrc/src/main.cpp index 22c45e5ab..70527ca1d 100644 --- a/toolsrc/src/main.cpp +++ b/toolsrc/src/main.cpp @@ -13,6 +13,7 @@ #include "vcpkg_System.h" #include "vcpkg_Input.h" #include "Paragraphs.h" +#include "vcpkg_info.h" using namespace vcpkg; @@ -192,7 +193,7 @@ int wmain(const int argc, const wchar_t* const* const argv) Flush(); }); - TrackProperty("version", version()); + TrackProperty("version", Info::version()); const std::string trimmed_command_line = trim_path_from_command_line(Strings::utf16_to_utf8(GetCommandLineW())); TrackProperty("cmdline", trimmed_command_line); @@ -234,10 +235,10 @@ int wmain(const int argc, const wchar_t* const* const argv) std::cerr << "vcpkg.exe has crashed.\n" << "Please send an email to:\n" - << " vcpkg@microsoft.com\n" + << " " << Info::email() << "\n" << "containing a brief summary of what you were trying to do and the following data blob:\n" << "\n" - << "Version=" << version() << "\n" + << "Version=" << Info::version() << "\n" << "EXCEPTION='" << exc_msg << "'\n" << "CMD=\n"; for (int x = 0; x < argc; ++x) |
