add failing test
handle errors
Merge pull request #1 from stagas/handle-errors

handle errors