fixing a bug to display error on workflow failures