Skip to content

consistent error throwing #4470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2017
Merged

consistent error throwing #4470

merged 1 commit into from
Dec 29, 2017

Conversation

vitaly-t
Copy link
Contributor

@vitaly-t vitaly-t commented Dec 29, 2017

Should use throw inside .catch, not return Promise.reject.

should use `throw` inside `.catch`.
@codecov
Copy link

codecov bot commented Dec 29, 2017

Codecov Report

Merging #4470 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4470      +/-   ##
==========================================
- Coverage   92.73%   92.71%   -0.03%     
==========================================
  Files         118      118              
  Lines        8356     8356              
==========================================
- Hits         7749     7747       -2     
- Misses        607      609       +2
Impacted Files Coverage Δ
...dapters/Storage/Postgres/PostgresStorageAdapter.js 97.15% <100%> (ø) ⬆️
src/RestWrite.js 93.28% <0%> (-0.37%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb05330...e2d197c. Read the comment docs.

@vitaly-t vitaly-t merged commit 6ba9399 into master Dec 29, 2017
@vitaly-t vitaly-t deleted the vitaly-t-patch-2 branch December 29, 2017 17:06
flovilmart pushed a commit that referenced this pull request Dec 29, 2017
should use `throw` inside `.catch`.
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
should use `throw` inside `.catch`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants