Only displaying detail option if failure or logs are available