joomcode / errorx

A comprehensive error handling library for Go
MIT License
1.13k stars 29 forks source link

fix unwrap on typed nil #42

Closed isopov closed 1 year ago

isopov commented 1 year ago

It seems that I have some typed as *errorx.Error nil and cannot debug its source - maybe we can ignore it instead of throwing NPD and it will manifest in a more readable way somewhere else?

PeterIvanov commented 1 year ago

@isopov friendly colleague pointed to this: https://go.dev/doc/faq#nil_error