erlang / eep

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

eep54: Add general and reason to return map #23

Closed garazdawi closed 3 years ago

garazdawi commented 3 years ago

The general return key was added in order to allow information to be given about the default I/O device in io:format("hello"). It also allows third-party error_report implementations (such as Elixir) much more freedom in what they can return.

The reason return key was added in order for third-party error_report implementations (such as Elixir) to influence what is printed to describe the actual error.