mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 03:22:47 +08:00
Expected::check_exit() now always shows line_info if it fails
This commit is contained in:
parent
2f6cf768e5
commit
9909299039
@ -103,7 +103,12 @@ namespace vcpkg
|
||||
private:
|
||||
void exit_if_error(const LineInfo& line_info) const
|
||||
{
|
||||
Checks::check_exit(line_info, !m_s.has_error(), m_s.to_string());
|
||||
// This is used for quick value_or_exit() calls, so always put line_info in the error message.
|
||||
Checks::check_exit(line_info,
|
||||
!m_s.has_error(),
|
||||
"Failed at [%s] with message:\n%s",
|
||||
line_info.to_string(),
|
||||
m_s.to_string());
|
||||
}
|
||||
|
||||
ErrorHolder<S> m_s;
|
||||
|
Loading…
Reference in New Issue
Block a user