aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/error.cc
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2022-03-07 10:04:57 +0100
committerregnat <rg@regnat.ovh>2022-03-07 10:09:10 +0100
commit313bbc07a8ae9d72c5f728fde490f3cddcc5087b (patch)
treec3bcd2a1c1ce785c815a0c30cc266f41cdbde66b /src/libutil/error.cc
parentfd45d85b4149a4d153d9c60f7f77244b3cf29ae3 (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.cc2
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;
}