Check an error, free, and throw if there is one. **/
| 386 | |
| 387 | /** Check an error, free, and throw if there is one. **/ |
| 388 | inline void check_config_error(tiledb_error_t* err) { |
| 389 | if (err != nullptr) { |
| 390 | const char* msg_cstr; |
| 391 | tiledb_error_message(err, &msg_cstr); |
| 392 | std::string msg = "Config Error: " + std::string(msg_cstr); |
| 393 | tiledb_error_free(&err); |
| 394 | throw TileDBError(msg); |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | } // namespace impl |
| 399 |
no test coverage detected