Retrieve compose failure category by exit code

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2021-04-15 14:19:59 +02:00
parent d8aa00a766
commit db38d1244c
No known key found for this signature in database
GPG key ID: 9858809D6F8F6E7E
5 changed files with 29 additions and 10 deletions

View file

@ -78,7 +78,7 @@ func runRemove(ctx context.Context, backend compose.Service, opts removeOptions,
}
reosurces, err := backend.Remove(ctx, project, compose.RemoveOptions{
DryRun: true,
DryRun: true,
Services: services,
})
if err != nil {

View file

@ -65,7 +65,7 @@ func runStop(ctx context.Context, backend compose.Service, opts stopOptions, ser
}
_, err = progress.Run(ctx, func(ctx context.Context) (string, error) {
return "", backend.Stop(ctx, project, compose.StopOptions{
Timeout: timeout,
Timeout: timeout,
Services: services,
})
})