Show exit status properly
Turns out $?.to_i is a 16bit int with some bit flags in the first byte.
This commit is contained in:
		
							parent
							
								
									c76e0156d7
								
							
						
					
					
						commit
						dd0df9bd37
					
				
							
								
								
									
										2
									
								
								bin/brew
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								bin/brew
									
									
									
									
									
								
							@ -310,7 +310,7 @@ rescue BuildError => e
 | 
				
			|||||||
  puts e.backtrace[1]
 | 
					  puts e.backtrace[1]
 | 
				
			||||||
  ohai "Environment"
 | 
					  ohai "Environment"
 | 
				
			||||||
  dump_config
 | 
					  dump_config
 | 
				
			||||||
  puts "Exit status: #{e.status}"
 | 
					  puts "Exit status: #{e.status.exitstatus}"
 | 
				
			||||||
  onoe e
 | 
					  onoe e
 | 
				
			||||||
  puts PLEASE_REPORT_BUG
 | 
					  puts PLEASE_REPORT_BUG
 | 
				
			||||||
  exit 1
 | 
					  exit 1
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user