| 214 | |
| 215 | template <typename AwsResult, typename Error> |
| 216 | Status OutcomeToStatus(const std::string& prefix, const std::string& operation, |
| 217 | const Aws::Utils::Outcome<AwsResult, Error>& outcome) { |
| 218 | if (outcome.IsSuccess()) { |
| 219 | return Status::OK(); |
| 220 | } else { |
| 221 | return ErrorToStatus(prefix, operation, outcome.GetError()); |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | template <typename AwsResult, typename Error, typename... Args> |
| 226 | Status OutcomeToStatus(const std::tuple<Args&...>& prefix, const std::string& operation, |