Error objects for errors, not strings, closes #22