report external volume name not found

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2022-03-01 09:30:56 +01:00 committed by Nicolas De loof
parent 1f0cf0723c
commit 52eeda9aa7
1 changed files with 1 additions and 1 deletions

View File

@ -1098,7 +1098,7 @@ func (s *composeService) ensureVolume(ctx context.Context, volume types.VolumeCo
return err return err
} }
if volume.External.External { if volume.External.External {
return fmt.Errorf("external volume %q not found", volume.External.Name) return fmt.Errorf("external volume %q not found", volume.Name)
} }
err := s.createVolume(ctx, volume) err := s.createVolume(ctx, volume)
return err return err