Return correct promise in error case

This commit is contained in:
Tankred Hase
2014-10-20 18:30:26 +02:00
parent e62f8c83f8
commit f4682599be
2 changed files with 2 additions and 4 deletions

View File

@@ -278,9 +278,7 @@ function execute(cmd, errMsg) {
});
// handler error globally
promise.catch(onError.bind(null, errMsg));
return promise;
return promise.catch(onError.bind(null, errMsg));
}
/**