fix: cat mw: print err if repo not found

Ayman Bagabas created

Change summary

server/middleware.go | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

server/middleware.go 🔗

@@ -66,6 +66,8 @@ func softServeMiddleware(ac *appCfg.Config) wish.Middleware {
 						}
 					}
 					if !repoExists {
+						s.Write([]byte("repository not found"))
+						s.Exit(1)
 						return
 					}
 					auth := ac.AuthRepo(repo, s.PublicKey())