Fix NoMethodError when commit is missing
What does this MR do and why?
Return 404 instead of 500 error when a commit id is incorrect.
Screenshots or screen recordings
How to set up and validate locally
http://127.0.0.1:3000/flightjs/Flight/-/commit/11111111111111111111111111111111111111/branches
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin