fix(repository): make sure to call not found handler when repository does not existsin "getRepositoryDetailsView" controller/request handler
@@ -60,6 +60,10 @@ const getRepositoryDetailsView: ReqHandler = async (request, reply) => {
repoFiles: [],
}
);
+ } else if (
+ error.message.includes("Could not find a valid git repository")
+ ) {
+ return reply.status(404).callNotFound();
} else {
throw err;
}