Improved error retrieval.
This commit is contained in:
		@@ -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