Просмотр исходного кода

added /oops endpoint for generating dummy exception

Brian Gough 11 лет назад
Родитель
Сommit
6483233f48
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      services/track-changes/app.coffee

+ 3 - 0
services/track-changes/app.coffee

@@ -50,6 +50,9 @@ app.post "/pack", (req, res, next) ->
 app.get "/status", (req, res, next) ->
 	res.send "track-changes is alive"
 
+app.get "/oops", (req, res, next) ->
+	throw new Error("dummy test error")
+
 app.get "/check_lock", HttpController.checkLock
 
 app.get "/health_check",  HttpController.healthCheck