support for X-Override-To

This commit is contained in:
Dave Horton
2020-12-09 18:05:59 -05:00
parent c25df2ad7e
commit d255339dac
3 changed files with 10 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ module.exports = function(srf, logger) {
if (0 === app.tasks.length) throw new Error('no application provided');
next();
} catch (err) {
logger.info(`Error retrieving or parsing application: ${err.message}`);
logger.info({err}, `Error retrieving or parsing application: ${err.message}`);
res.send(480, {headers: {'X-Reason': err.message}});
}
}