See https://github.com/sethwklein/errutil.