diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-07-26 20:32:41 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-07-26 20:32:41 +0200 |
| commit | f53e7393d3520b6a81b09ddf95640a1b74743e13 (patch) | |
| tree | 6c8c1989e7eb528a81511818835192a0829343c0 /api.js | |
| parent | 9b134604fad7478b49af1ca52073ee176cd012d3 (diff) | |
| download | orm-f53e7393d3520b6a81b09ddf95640a1b74743e13.tar.gz orm-f53e7393d3520b6a81b09ddf95640a1b74743e13.zip | |
forward API error to services
Diffstat (limited to 'api.js')
| -rw-r--r-- | api.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -54,6 +54,7 @@ module.exports.request = async (url, options, logger) => { error: response? response.body : err }); fs.appendFileSync(ERROR_LOG, JSON.stringify(err) + "\n"); + throw err; // rethrow for services to catch and handle } logger.warn("not found", { uri: url, |
