When there is a failed analysis on a project we always display a red banner with a message whatever the branch you are on. But this can be a bit confusing when the failed analysis is for another branch.
So we should just add the branch name in the banner when the failed analysis is not for the current branch displayed to the user. Something like : The last analysis on this project (<PR/branch name>) failed. ...