refactor purry-error
Allowing toggling debug mode via env variable; debug is noop otherwise