pkg / errors

Simple error handling primitives
https://godoc.org/github.com/pkg/errors
BSD 2-Clause "Simplified" License
8.18k stars 691 forks source link

PROPOSAL: Change the printing order of the Error() method #201

Closed ghost closed 5 years ago

ghost commented 5 years ago

Right now it prints in format msg: cause and i think it should be in reverse order. After all, msg is the clarification of the cause error, so it's only logical for it to go last, not first.

davecheney commented 5 years ago

I’m sorry, we can’t change the format now. However undesirable people are parsing it.

On 7 Mar 2019, at 18:43, amariampolskiy notifications@github.com wrote:

Right now it prints in format msg: cause and i think it should be in reverse order. After all, msg is the clarification of the cause error, so it's only logical for it to go last, not first.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ghost commented 5 years ago

Perhaps some sort of config for printing order? With default value being current method. That would make the changes backwards compatible

davecheney commented 5 years ago

I’m sorry but no. With the inclusion of any errors package in Go 1.13 you should send your feature requests to the go team.

On 7 Mar 2019, at 19:56, amariampolskiy notifications@github.com wrote:

Perhaps some sort of config for printing order? With default value being current method. That would make the changes backwards compatible

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ghost commented 5 years ago

Got it, then i'm closing the issue