mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-10-31 16:13:45 +08:00 
			
		
		
		
	 384f0565f5
			
		
	
	384f0565f5
	
	
	
		
			
			Remove the protobuf files associated with controller/errdefs. This doesn't completely remove the type as the monitor still uses it as a signal to start the monitor. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			273 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			273 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package errdefs
 | |
| 
 | |
| type BuildError struct {
 | |
| 	err error
 | |
| }
 | |
| 
 | |
| func (e *BuildError) Unwrap() error {
 | |
| 	return e.err
 | |
| }
 | |
| 
 | |
| func (e *BuildError) Error() string {
 | |
| 	return e.err.Error()
 | |
| }
 | |
| 
 | |
| func WrapBuild(err error) error {
 | |
| 	if err == nil {
 | |
| 		return nil
 | |
| 	}
 | |
| 	return &BuildError{err: err}
 | |
| }
 |