-
Notifications
You must be signed in to change notification settings - Fork 115
More label usage #338
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
base: master
Are you sure you want to change the base?
More label usage #338
Conversation
| call_reason = | ||
| if maybe_pid do | ||
| "Error happened when attempting to transfer to #{inspect(maybe_pid)} " <> | ||
| "Error happened when attempting to transfer to #{Util.inspect_pid(maybe_pid)} " <> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that Util.inspect_pid/1 was updated to fall back to inspect/1 where it's not actually a pid
josevalim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nathanl, I am a bit conflicting about these changes because the information you are attaching here, in the majority of the cases, is already available as the init function (or similarly named) in the process dictionary, so we are attaching redundant information.
|
Gotcha. If I roll back the |
86ea0c1 to
c2fd173
Compare
|
@josevalim I rebased to just the |
|
Yes, let's do the inspect_pid for sure. We can even read the initial_call on inspect_pid too (if there is no label). |
|
Added that |
|
Thank you, please fix the tests to be less specific and we should be good to go! |
b49d1e9 to
ddc855d
Compare
|
@josevalim see update |
Whenever possible, have error messages that include a PID also include the process label, name, or initial call.
29a6f10 to
02bf591
Compare
|
Rebased on master and tests are green |
To improve error messages and facilitate debugging.
Whenever possible, have error messages that include a PID also include
the process label, name, or initial call.