From 8a05c21e32862cc30811550d446d5eb25fdf127f Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 18 Feb 2021 12:24:07 -0800 Subject: [PATCH] add string separation while composing error message (#7919) Summary: This will fix a missing string separation between `msg[n]` and `state_`. Example of an error message how its looking now: ``` IO error: No space left on deviceWhile appending to file: /home/willi/src/stable-3.7/tmp/arangosh_CL6EFQ/shell_client/single1/data/engine-rocksdb/126426.sst: No space left on device ``` Pull Request resolved: https://github.com/facebook/rocksdb/pull/7919 Reviewed By: ajkr Differential Revision: D26242246 Pulled By: jay-zhuang fbshipit-source-id: 5d9a0997a410aecfb3781478e57395d3d937bb84 --- util/status.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/status.cc b/util/status.cc index 616c1a746..857f16dcd 100644 --- a/util/status.cc +++ b/util/status.cc @@ -150,6 +150,9 @@ std::string Status::ToString() const { } if (state_ != nullptr) { + if (subcode_ != kNone) { + result.append(": "); + } result.append(state_); } return result;