I am trying to catch an error in Oak for the purpose of logging. How do I catch an error with the "app.listen" method? I attempted to use try/catch but it seems like Deno catches the error before I can.
try{
app.listen({port:
3000});
logger.info('Listening...');
}catch(e){
handleTheError(e);
}