mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 20:26:48 +00:00 
			
		
		
		
	Fail properly when a content file is not found
This commit is contained in:
		
							parent
							
								
									03b3487f1b
								
							
						
					
					
						commit
						09bd0324c9
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -2071,6 +2071,12 @@ namespace MWWorld | |||
|             { | ||||
|                 contentLoader.load(col.getPath(*it), idx); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                 std::stringstream msg; | ||||
|                 msg << "Failed loading " << *it << ": the content file does not exist"; | ||||
|                 throw std::runtime_error(msg.str()); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue