mirror of
https://github.com/docker/compose.git
synced 2025-07-25 14:44:29 +02:00
log configuration error as a watch log event
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
043465448f
commit
e6ea8fb962
@ -304,10 +304,15 @@ func (lk *LogKeyboard) StartWatch(ctx context.Context, doneCh chan bool, project
|
|||||||
lk.Watch.newContext(ctx)
|
lk.Watch.newContext(ctx)
|
||||||
buildOpts := *options.Create.Build
|
buildOpts := *options.Create.Build
|
||||||
buildOpts.Quiet = true
|
buildOpts.Quiet = true
|
||||||
return lk.Watch.WatchFn(lk.Watch.Ctx, doneCh, project, options.Start.Services, api.WatchOptions{
|
err := lk.Watch.WatchFn(lk.Watch.Ctx, doneCh, project, options.Start.Services, api.WatchOptions{
|
||||||
Build: &buildOpts,
|
Build: &buildOpts,
|
||||||
LogTo: options.Start.Attach,
|
LogTo: options.Start.Attach,
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
lk.Watch.switchWatching()
|
||||||
|
options.Start.Attach.Err(api.WatchLogger, err.Error())
|
||||||
|
}
|
||||||
|
return err
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user