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

Misleading error message when atom is passed as a part of header value #139

Closed
si14 opened this issue Feb 7, 2012 · 4 comments
Closed
Milestone

Comments

@si14
Copy link
Contributor

si14 commented Feb 7, 2012

Here it is:

Bad value on output port 'tcp_inet'

I'm not sure that this is curable, though.

@essen
Copy link
Member

essen commented Feb 7, 2012

We can check that the value is a list or binary, but if it's inside an iolist we can't do anything.

@si14
Copy link
Contributor Author

si14 commented Feb 8, 2012

Isn't it possible to catch this error and rethrow it with better description?

@essen
Copy link
Member

essen commented Feb 8, 2012

I don't know, can you post the whole error rather than just the message?

@essen
Copy link
Member

essen commented Apr 16, 2012

This isn't an exception.

https://github.com/erlang/otp/blob/master/erts/emulator/beam/io.c#L1285

We can't catch it, or do anything about it other than checking the whole iodata() argument, which isn't an acceptable solution.

Closing this then! Thanks.

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