Skip to content

Commit

Permalink
Fix OADA errors stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Mar 12, 2021
1 parent bbca2de commit d6a81c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions oada/services/http-handler/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit d6a81c0

Please sign in to comment.