Revert "added missing error method"

This reverts commit d1140701178da258a6e2c0dc3c39c8b9487a691d.