Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Add error message to catch a plugin being added as a middleware #349

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rajeshsegu
Copy link
Contributor

No description provided.

@rajeshsegu rajeshsegu changed the title add error message to catch a plugin being added as a middleware Add error message to catch a plugin being added as a middleware Dec 5, 2018
Copy link
Contributor

@KevinGrandon KevinGrandon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the fence about this one as it seems that flow does catch this case. I'm not sure we want to try to implement runtime checks for everything that we do have flow types for, but let's see what people think.

image

@lhorie
Copy link
Contributor

lhorie commented Dec 5, 2018

Need to fix flow error. Also, this is not greenkeeping. I'd say bugfix might be a more appropriate tag.

@KevinGrandon I think it's ok to add runtime checks for these, at least for now. We've had a few cases of post-migration code throwing bad errors and wasting people's time that could've been avoided by surfacing errors such as this. Also, the test suite already has a lot of tests similar to this one.

Copy link
Contributor

@KevinGrandon KevinGrandon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, works for me then. Requesting changes to clear review queue. Let's get flow issues fixed and request re-reivew. Thanks!

@codecov
Copy link

codecov bot commented Dec 6, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@fb86e7f). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #349   +/-   ##
=========================================
  Coverage          ?   93.23%           
=========================================
  Files             ?       18           
  Lines             ?      458           
  Branches          ?       92           
=========================================
  Hits              ?      427           
  Misses            ?       17           
  Partials          ?       14
Impacted Files Coverage Δ
src/base-app.js 90.11% <100%> (ø)

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 fb86e7f...30aae8c. Read the comment docs.

@rajeshsegu
Copy link
Contributor Author

@KevinGrandon @lhorie please do review ( updated tag to bugfix and flow passes )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants