refactoring error handling
Merge branch 'master' of github.com:benoj/RewardsService