Logging when no image is found

This commit is contained in:
CrazyMax
2020-05-25 23:27:30 +02:00
parent a6a231ac06
commit 5930a2a1fb
3 changed files with 3 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ func (c *Client) ListJob() []model.Job {
images := c.listContainerImage()
if len(images) == 0 {
log.Warn().Msg("No image found")
return []model.Job{}
}

View File

@@ -32,6 +32,7 @@ func (c *Client) ListJob() []model.Job {
images := c.listFileImage()
if len(images) == 0 {
log.Warn().Msg("No image found")
return []model.Job{}
}

View File

@@ -32,6 +32,7 @@ func (c *Client) ListJob() []model.Job {
images := c.listServiceImage()
if len(images) == 0 {
log.Warn().Msg("No image found")
return []model.Job{}
}