Return correct promise in error case
This commit is contained in:
parent
e62f8c83f8
commit
f4682599be
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "openpgp",
|
"name": "openpgp",
|
||||||
"description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
|
"description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
|
||||||
"version": "0.8.1-dev",
|
"version": "0.8.1",
|
||||||
"homepage": "http://openpgpjs.org/",
|
"homepage": "http://openpgpjs.org/",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.8"
|
"node": ">=0.8"
|
||||||
|
|
|
@ -278,9 +278,7 @@ function execute(cmd, errMsg) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// handler error globally
|
// handler error globally
|
||||||
promise.catch(onError.bind(null, errMsg));
|
return promise.catch(onError.bind(null, errMsg));
|
||||||
|
|
||||||
return promise;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user