erlang / eep

Erlang Enhancement Proposals
http://www.erlang.org/erlang-enhancement-proposals/
264 stars 66 forks source link

Update EEP-54 according to the decision of OTB #16

Closed bjorng closed 3 years ago

bjorng commented 3 years ago

The OTP Technical Board approved the EEP, but requested a few changes:

Taken together, those to changes makes it easy to have one module with a format_error/2 that can explain errors for multiple modules.

essen commented 3 years ago

Why pass only the first entry to the stacktrace and not the full stacktrace? The format_error function can extract the first entry on its own.

Saying this because the first entry in the stacktrace may not necessarily be the function the user was calling, it may be a second internal function, and a user format_error function may want to look at the second entry instead.

bjorng commented 3 years ago

Why pass only the first entry to the stacktrace and not the full stacktrace? The format_error function can extract the first entry on its own.

After an internal discussion in the OTP team, we have decided to adopt your suggestion.