| 174 | } |
| 175 | |
| 176 | string Status::ToString() const { |
| 177 | if (state_ == nullptr) { |
| 178 | return "OK"; |
| 179 | } else { |
| 180 | string result(error_name(code())); |
| 181 | result += ": "; |
| 182 | result += state_->msg; |
| 183 | return result; |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | void Status::IgnoreError() const { |
| 188 | // no-op |