Improved error retrieval.

This commit is contained in:
Nicolás Ortega Froysa 2017-11-17 17:17:52 +01:00
parent 8dd885537f
commit c6eb1d6b09
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -28,5 +28,7 @@ void add_error(const std::string &error) {
} }
const char *NeoComm_get_last_error() { const char *NeoComm_get_last_error() {
if(last_error.empty())
return NULL;
return last_error.c_str(); return last_error.c_str();
} }