better error messages for extractor
Previously extractor would just crash because of unhandled exceptions. Now it displays meaningful error messages.
This commit is contained in:
		
							parent
							
								
									62ccbc7490
								
							
						
					
					
						commit
						fc6607ce9e
					
				| @ -132,6 +132,16 @@ int main (int argc, char *argv[]) { | ||||
|             return -1; | ||||
|         } | ||||
| 
 | ||||
|         if(!boost::filesystem::is_regular_file(input_path)) { | ||||
|             SimpleLogger().Write(logWARNING) << "Input file " << input_path.c_str() << " not found!"; | ||||
|             return -1; | ||||
|         } | ||||
| 
 | ||||
|         if(!boost::filesystem::is_regular_file(profile_path)) { | ||||
|             SimpleLogger().Write(logWARNING) << "Profile " << profile_path.c_str() << " not found!"; | ||||
|             return -1; | ||||
|         } | ||||
| 
 | ||||
|         SimpleLogger().Write() << "Input file: " << input_path.filename().string(); | ||||
|         SimpleLogger().Write() << "Profile: " << profile_path.filename().string(); | ||||
|         SimpleLogger().Write() << "Threads: " << requested_num_threads; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user