| 137 | |
| 138 | namespace garrow { |
| 139 | gboolean |
| 140 | check(GError **error, const arrow::Status &status, const char *context) |
| 141 | { |
| 142 | if (status.ok()) { |
| 143 | return TRUE; |
| 144 | } else { |
| 145 | g_set_error(error, |
| 146 | GARROW_ERROR, |
| 147 | garrow_error_from_status(status), |
| 148 | "%s: %s", |
| 149 | context, |
| 150 | status.ToString().c_str()); |
| 151 | return FALSE; |
| 152 | } |
| 153 | } |
| 154 | } // namespace garrow |
no test coverage detected