Log the error

This commit is contained in:
glendsoza 2022-01-14 12:56:58 +05:30
parent 32aa08066c
commit 663928e81a

View file

@ -116,6 +116,8 @@ func (gui *Gui) renderContainerEnv(container *commands.Container) error {
renderedTable, err := utils.RenderTable(envVariablesList)
// in case of some error
if err != nil {
// log the error
gui.Log.Error(err)
renderedTable = "Something went wrong while displaying environment variables"
}
return gui.T.NewTask(func(stop chan struct{}) {