From d6a81c05fecdb89d409c43d81688279668f99914 Mon Sep 17 00:00:00 2001 From: Alex Layton Date: Fri, 12 Mar 2021 12:13:24 -0500 Subject: [PATCH] Fix OADA errors stuff --- oada/services/http-handler/src/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oada/services/http-handler/src/server.js b/oada/services/http-handler/src/server.js index 327fa9cf..4bd779f3 100644 --- a/oada/services/http-handler/src/server.js +++ b/oada/services/http-handler/src/server.js @@ -153,6 +153,10 @@ app.use(function (req) { ); }); +/////////////////////////////////////////////////// +// Use OADA middleware to catch errors and respond +app.use(oadaError.middleware()); + if (require.main === module) { start(); }