Skip to content
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

Return promise for handler and handle error with .apply() #38

Merged
merged 3 commits into from
Mar 25, 2020

Conversation

hoangvvo
Copy link
Owner

@hoangvvo hoangvvo commented Mar 25, 2020

Fix #30. Also handle error in .apply() as suggested by @throwarray

@codecov
Copy link

codecov bot commented Mar 25, 2020

Codecov Report

Merging #38 into master will not change coverage by %.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #38   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           46        47    +1     
=========================================
+ Hits            46        47    +1     
Impacted Files Coverage Δ
lib/index.js 100.00% <100.00%> (ø)

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 78bd45a...91b7f2a. Read the comment docs.

@hoangvvo hoangvvo mentioned this pull request Mar 25, 2020
@hoangvvo hoangvvo merged commit 5eb656e into master Mar 25, 2020
@hoangvvo hoangvvo deleted the better-handler branch April 27, 2020 00:31
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.

"API resolved without sending a response" appearing on every route despite the API routes working fine.
1 participant