mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-16 13:25:12 +00:00
Return correct promise in error case
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user