Merge pull request #6 from Differential/master

check for error before looking at response