Display the lowercased name for errors in package parsing

This commit is contained in:
Alexander Karatarakis 2016-10-05 13:19:46 -07:00
parent 779ccb9fa6
commit 7fd71747d7

View File

@ -14,7 +14,8 @@ namespace vcpkg {namespace Input
return *spec;
}
System::println(System::color::error, "Error: %s: %s", expected_spec.error_code().message(), package_spec_as_string);
// Intentionally show the lowercased string
System::println(System::color::error, "Error: %s: %s", expected_spec.error_code().message(), as_lowercase);
System::print(example_text);
exit(EXIT_FAILURE);
}