updated HockeyApp error checking code