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

If an interface definition is missing the "value" attribute, the resulting error message is inscrutable #159

Closed
bemasc opened this issue Dec 1, 2014 · 1 comment

Comments

@bemasc
Copy link
Contributor

bemasc commented Dec 1, 2014

Specifically, the error message is "Message discarded for not matching declared type!", with no indication of which module or message triggered the error.

Presumably something more specific would be better ... ideally at build time!

@willscott
Copy link
Member

This is a dup. of #23, and is a long-standing issue with how we handle the declarative interfaces.

The first step is probably to update https://github.com/freedomjs/freedom/blob/master/src/consumer.js#L329 such that it returns a promise, and rejections can be caught up the chain where information about the context where the error occured can be included with the error itself.

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

No branches or pull requests

2 participants