-
#include "tensorstore/util/status.h"
-
absl::Status tensorstore::MaybeAnnotateStatus(
absl::Status source,
std::string_view message,
std::source_location loc = std::source_location::current()); -
absl::Status tensorstore::MaybeAnnotateStatus(
absl::Status source,
std::string_view message,
absl::StatusCode new_code,
std::source_location loc = std::source_location::current()); If status is not
absl::StatusCode::kOk
, then annotate the status message.