mirror of
				https://github.com/red0124/ssp.git
				synced 2025-11-03 22:36:44 +01:00 
			
		
		
		
	Update rethrow error message line number
This commit is contained in:
		
							parent
							
								
									975ef2e4a5
								
							
						
					
					
						commit
						9c11f22d79
					
				@ -622,9 +622,11 @@ private:
 | 
				
			|||||||
    void decorate_rethrow(const ss::exception& e) const {
 | 
					    void decorate_rethrow(const ss::exception& e) const {
 | 
				
			||||||
        static_assert(throw_on_error,
 | 
					        static_assert(throw_on_error,
 | 
				
			||||||
                      "throw_on_error needs to be enabled to use this method");
 | 
					                      "throw_on_error needs to be enabled to use this method");
 | 
				
			||||||
        throw ss::exception{std::string{file_name_}
 | 
					        auto line = reader_.line_number_;
 | 
				
			||||||
 | 
					        throw ss::exception{
 | 
				
			||||||
 | 
					            std::string{file_name_}
 | 
				
			||||||
                .append(" ")
 | 
					                .append(" ")
 | 
				
			||||||
                                .append(std::to_string(reader_.line_number_))
 | 
					                .append(std::to_string(line > 1 ? line - 1 : line))
 | 
				
			||||||
                .append(": ")
 | 
					                .append(": ")
 | 
				
			||||||
                .append(e.what())};
 | 
					                .append(e.what())};
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user