mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Bumping errors from sentry to user.
This commit is contained in:
parent
d1e37c27c0
commit
2c24866fe0
2 changed files with 2 additions and 2 deletions
|
@ -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}"
|
||||
|
||||
|
||||
|
|
|
@ -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}`
|
||||
}));
|
||||
|
|
Loading…
Add table
Reference in a new issue