Added reasons to assertions
This commit is contained in:
		@@ -57,7 +57,7 @@ struct Locale LocaleManager::getLocale() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
std::string LocaleManager::getString(std::string key) {
 | 
			
		||||
  assertNotNull(this->currentlyLoadedAsset);
 | 
			
		||||
  assertNotNull(this->currentlyLoadedAsset, "LocaleManager::getString: Currently loaded asset cannot be null");
 | 
			
		||||
  return this->currentlyLoadedAsset->getValue(key);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user