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(); }