Ionic check for Updates not returning error


when running the following lines of code without an internet connection

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

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?