Only write error lines to exception
This commit is contained in:
		
							
								
								
									
										2
									
								
								build.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								build.py
									
									
									
									
									
								
							| @@ -161,7 +161,7 @@ def docker_buildx(repository: str, tags: list[str], build_platforms: list[Docker | ||||
|     if process.returncode != 0: | ||||
|         output = process.stdout.decode('utf-8') | ||||
|         print(output) | ||||
|         error = process.stderr.decode('utf-8') | ||||
|         error = "\n".join(line for line in process.stderr.decode('utf-8').splitlines() if 'ERROR' in line) | ||||
|         raise Exception(error) | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user