fix things and format error in an actual error object
Merge pull request #2 from craigspaeth/master

fix things and format error in an actual error object