From fd3c85bed43e6e7db9978148a37850ab95475d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Mon, 20 Dec 2021 19:13:45 +0100 Subject: [PATCH] Hide gathering tech info errors --- docker/types.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/types.go b/docker/types.go index 579376c..5539c77 100644 --- a/docker/types.go +++ b/docker/types.go @@ -287,7 +287,8 @@ func (c *Container) GetPrimaryTech() (apps.AppTech, error) { stdouterr, err := driver.Exec(c.App.Name, []string{"readlink", "/srv/bin/primary_tech"}, "", []string{}, true) if err != nil { - return tech, err + // in case there is an error just return empty response + return tech, nil } if len(string(*stdouterr)) > 0 { @@ -316,7 +317,8 @@ func (c *Container) GetTechs() (apps.AppTechs, error) { stdouterr, err := driver.Exec(c.App.Name, []string{"ls", "/opt/techs"}, "", []string{}, true) if err != nil { - return techs, err + // in case there is an error just return empty response + return techs, nil } techsRaw := strings.Fields(string(*stdouterr))