Bumping errors from sentry to user.

This commit is contained in:
Samuel Clay 2021-10-26 08:29:25 -04:00
parent d1e37c27c0
commit 2c24866fe0
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ original_text = (app) =>
res.end JSON.stringify result
.catch (error) =>
log.debug "Failed to fetch: #{url}: #{error}"
throw new Error("Failed to fetch: #{url}: #{error}")
# throw new Error("Failed to fetch: #{url}: #{error}")
return res.end JSON.stringify error: "Failed to fetch #{url}: #{error}"

View file

@ -43,7 +43,7 @@
return res.end(JSON.stringify(result));
}).catch((error) => {
log.debug(`Failed to fetch: ${url}: ${error}`);
throw new Error(`Failed to fetch: ${url}: ${error}`);
// throw new Error("Failed to fetch: #{url}: #{error}")
return res.end(JSON.stringify({
error: `Failed to fetch ${url}: ${error}`
}));