소스 검색

added /oops endpoint for generating dummy exception

Brian Gough 11 년 전
부모
커밋
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