commit | 9154d06c1e449ea1f8c248562b749192008db40b | [log] [tgz] |
---|---|---|
author | Christoforos Miliotis <christoforos.miliotis.dev@gmail.com> | Fri Apr 28 11:56:22 2023 +0100 |
committer | Christoforos Miliotis <christoforos.miliotis.dev@gmail.com> | Wed May 17 08:08:38 2023 +0000 |
tree | 15d11cd7ed92bc70e6bb162409216ce71bde0c0a | |
parent | f54de699f0391f39de3383fa2fe3533eb23b3f52 [diff] |
Return ResourceNotFoundException when failing to open a git repository If we attempt to open a repository that does not exist, the exception thrown is eventually wrapped into a servlet exception with code 500. This is incorrect, as the response should actually be a 404. The first step therefore is to handle the exception by wrapping it into a rest ResourceNotFoundException. Bug: Issue 16730 Change-Id: If87f717012bf7f22ae31b12822e5453c711e3cdc