handle err objects
Merge pull request #20 from craigspaeth/master

Handle err objects