Better error message if WideCharToMultiByte fails
This commit is contained in:
		
							parent
							
								
									8b42b7d269
								
							
						
					
					
						commit
						10000c383a
					
				| @ -193,7 +193,7 @@ inline void wbuf_to_utf8buf(const fmt::wmemory_buffer &wbuf, fmt::memory_buffer | ||||
|     } | ||||
|     else | ||||
|     { | ||||
|         throw spdlog::spdlog_ex("Failed converting to utf8", errno); | ||||
|         throw spdlog::spdlog_ex(fmt::format("WideCharToMultiByte failed. Last error: {}", ::GetLastError())); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user