Remove inner try catch in SPDLOG_LOGGER_CATCH
The fmt::format call should not throw formatting the exception message and the source code location.
This commit is contained in:
		@@ -33,14 +33,7 @@
 | 
			
		||||
        {                                                                                                                                  \
 | 
			
		||||
            if(location.filename)                                                                                                          \
 | 
			
		||||
            {                                                                                                                              \
 | 
			
		||||
                try                                                                                                                        \
 | 
			
		||||
                {                                                                                                                          \
 | 
			
		||||
                    err_handler_(fmt::format("{} [{}({})]", ex.what(), location.filename, location.line));                                \
 | 
			
		||||
                }                                                                                                                          \
 | 
			
		||||
                catch (const std::exception &ex)                                                                                           \
 | 
			
		||||
                {                                                                                                                          \
 | 
			
		||||
                    err_handler_(ex.what());                                                                                               \
 | 
			
		||||
                }                                                                                                                          \
 | 
			
		||||
                err_handler_(fmt::format("{} [{}({})]", ex.what(), location.filename, location.line));                                     \
 | 
			
		||||
            }                                                                                                                              \
 | 
			
		||||
            else                                                                                                                           \
 | 
			
		||||
            {                                                                                                                              \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user