varlink / go

Golang implementation of the Varlink protocol
https://godoc.org/github.com/varlink/go/varlink
Apache License 2.0
55 stars 57 forks source link

Generated errors' error strings should include more metadata #10

Closed johanbrandhorst closed 4 years ago

johanbrandhorst commented 4 years ago

The generated errors error string currently only includes the type name, which is very annoying to handle in applications and for debugging unexpected errors. I propose we add more metadata to the error strings, for example adding the fields of the error to the string.

johanbrandhorst commented 4 years ago

I plan to have a stab at this myself.