Remove dependency on tea-error by just using Error with properties.