# Ionic check for Updates not returning error

**URL:** <https://forum.ionicframework.com/t/ionic-check-for-updates-not-returning-error/30913>\
**Category:** ionic-v1\
**Created:** [August 21, 2015, 8:08am UTC](https://forum.ionicframework.com/t/ionic-check-for-updates-not-returning-error/30913 "2015-08-21T08:08:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesdef](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@jamesdef](https://forum.ionicframework.com/u/jamesdef)\
**Post date:** [August 21, 2015, 8:08am UTC](https://forum.ionicframework.com/t/ionic-check-for-updates-not-returning-error/30913/1 "2015-08-21T08:08:15Z")

</div>

Hi,

when running the following lines of code without an internet connection

> $ionicDeploy.check().then(function(hasUpdate) {  
> console.log(‘checked for updates’);  
> }, function(err) {  
> console.error(‘error’);  
> });

the response would be ‘checked for updates’, although actually checking for updates was impossible as no internet connection was available.

Would anyone no why the error callback isn’t called instead?
