Improved error retrieval.
This commit is contained in:
parent
8dd885537f
commit
c6eb1d6b09
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user