aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/Errors.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-08-17 14:57:41 +0000
committerMaximilian Krambach <[email protected]>2018-08-17 14:57:41 +0000
commitad39d54d192864b54a155bf5f94d5b6bb3e8612a (patch)
treed10d1944bcffea2b27e569a7836cb2e5fcff1b32 /lang/js/src/Errors.js
parentjs: disallow bulk set data on key from outside (diff)
downloadgpgme-ad39d54d192864b54a155bf5f94d5b6bb3e8612a.tar.gz
gpgme-ad39d54d192864b54a155bf5f94d5b6bb3e8612a.zip
js: removed Key.armor property in synchronous use
-- * src/Key.js The synchronous mode for a Key does not offer an armor/ armored property anymore. This frees up a lot of performance issues, also the armored expoort is expected to change quite often, so a cached version is not advisable. * hasSecret/getHasSecret is now refactored, to reflect their uses. With get('hasSecret') there is a method that fetches the result. * src/Key.js also some refactoring
Diffstat (limited to 'lang/js/src/Errors.js')
-rw-r--r--lang/js/src/Errors.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/js/src/Errors.js b/lang/js/src/Errors.js
index 39e3a74a..b22eca73 100644
--- a/lang/js/src/Errors.js
+++ b/lang/js/src/Errors.js
@@ -81,6 +81,10 @@ const err_list = {
msg:'This property has not been retrieved yet from GPG',
type: 'error'
},
+ 'KEY_ASYNC_ONLY': {
+ msg: 'This property cannot be used in synchronous calls',
+ type: 'error'
+ },
'KEY_NO_DEFAULT': {
msg:'A default key could not be established. Please check yout gpg ' +
'configuration',