Вывод только первой строки git сообщения при ошибке
This commit is contained in:
		
							parent
							
								
									4590ee5fbc
								
							
						
					
					
						commit
						38b37eea70
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -35,11 +35,11 @@ class Snag {
 | 
			
		|||
						currentTime.second);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	private auto git(string[] command, string message, string separator = ":\n") {
 | 
			
		||||
	private auto git(string[] command, string message, string separator = ":\n\t") {
 | 
			
		||||
		auto result = execute(_baseCommand ~ command);
 | 
			
		||||
		if (result.status)
 | 
			
		||||
			throw new SnagException(
 | 
			
		||||
				message ~ separator ~ result.output
 | 
			
		||||
				message ~ separator ~ result.output.split('\n')[0]
 | 
			
		||||
			);
 | 
			
		||||
		return result;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue