mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-19 01:47:43 +08:00

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}
|
|
}
|