mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
log the error object instead of the string message only
Co-authored-by: Nick Sieger <nicksieger@gmail.com> Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
18ce1f41b7
commit
3f0550f884
@ -104,7 +104,7 @@ func (s *composeService) getDrivers(ctx context.Context) ([]build.DriverInfo, er
|
|||||||
}
|
}
|
||||||
if f == nil {
|
if f == nil {
|
||||||
if f, err = driver.GetFactory(ng.Driver, true); f == nil || err != nil {
|
if f, err = driver.GetFactory(ng.Driver, true); f == nil || err != nil {
|
||||||
return nil, fmt.Errorf("failed to find buildx driver %q, error: %s", ng.Driver, err.Error())
|
return nil, fmt.Errorf("failed to find buildx driver %q, error: %w", ng.Driver, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user