diff options
author | regnat <rg@regnat.ovh> | 2022-03-07 10:04:57 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2022-03-07 10:09:10 +0100 |
commit | 313bbc07a8ae9d72c5f728fde490f3cddcc5087b (patch) | |
tree | c3bcd2a1c1ce785c815a0c30cc266f41cdbde66b /src/libutil/error.cc | |
parent | fd45d85b4149a4d153d9c60f7f77244b3cf29ae3 (diff) |
Implement `operator<<` for Suggestions
That way there’s no need to explicitely convert it to a string when
printing it
Diffstat (limited to 'src/libutil/error.cc')
-rw-r--r-- | src/libutil/error.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/error.cc b/src/libutil/error.cc index 15ae7a759..b2dfb35b2 100644 --- a/src/libutil/error.cc +++ b/src/libutil/error.cc @@ -285,7 +285,7 @@ std::ostream & showErrorInfo(std::ostream & out, const ErrorInfo & einfo, bool s auto suggestions = einfo.suggestions.trim(); if (! suggestions.suggestions.empty()){ oss << "Did you mean " << - suggestions.trim().pretty_print() << + suggestions.trim() << "?" << std::endl; } |