Skip to content

Commit

Permalink
Better error message when VCPKG_ROOT is independently defined (#7229)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel347x authored and Rastaban committed Jul 18, 2019
1 parent 4661bb1 commit ef48500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolsrc/src/vcpkg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static void inner(const VcpkgCmdArguments& args)
#else
const int exit_code = chdir(paths.root.c_str());
#endif
Checks::check_exit(VCPKG_LINE_INFO, exit_code == 0, "Changing the working dir failed");
Checks::check_exit(VCPKG_LINE_INFO, exit_code == 0, "Changing the working directory to the vcpkg root directory failed. Did you incorrectly define the VCPKG_ROOT environment variable, or did you mistakenly create a file named .vcpkg-root somewhere?");

if (args.command == "install" || args.command == "remove" || args.command == "export" || args.command == "update")
{
Expand Down

0 comments on commit ef48500

Please sign in to comment.