Improved error retrieval.
This commit is contained in:
1 file changed
+2
@@ -28,5 +28,7 @@ void add_error(const std::string &error) {
|
||||
}
|
||||
|
||||
const char *NeoComm_get_last_error() {
|
||||
if(last_error.empty())
|
||||
return NULL;
|
||||
return last_error.c_str();
|
||||
}
|
||||
Reference in new issue
Block a user