summaryrefslogtreecommitdiff
path: root/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'api.js')
-rw-r--r--api.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/api.js b/api.js
index eb6f9f1..1146f86 100644
--- a/api.js
+++ b/api.js
@@ -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,