Client APIs
API Reference Overview
Returns the error message contained within the result. The error is only set if `duckdb_query` returns `DuckDBError`.  
The result of this function must not be freed. It will be cleaned up when `duckdb_destroy_result` is called.  
###### Syntax {#docs:api:c:query::syntax}  
```c
const char *duckdb_result_error(
duckdb_result *result
);
```  
###### Parameters {#docs:api:c:query::parameters}  
* `result`: The result object to fetch the error from.  
###### Return Value {#docs:api:c:query::return-value}  
The error of the result.  
<br>