I know it's totally my bad to cause this in the first place, but I've somehow made err.Error() recurse forever, which means the err itself is the cause. I haven't tracked it down yet, but detecting if the Error() chain loops might be nice, as I had to use delve and print 200k lines of stacktrace to figure out what was wrong.
https://github.com/pkg/errors/blob/master/errors.go#L228
I know it's totally my bad to cause this in the first place, but I've somehow made
err.Error()recurse forever, which means the err itself is thecause. I haven't tracked it down yet, but detecting if theError()chain loops might be nice, as I had to use delve and print 200k lines of stacktrace to figure out what was wrong.https://github.com/pkg/errors/blob/master/errors.go#L228