aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/testapplication.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-04-25 09:32:21 +0000
committerMaximilian Krambach <[email protected]>2018-04-25 09:32:21 +0000
commit5befa1c9751fe54b5ae87906d7f09772ce9de6ea (patch)
tree07d5b2dd1f97c88d42cc5bf723be464ec97403cd /lang/js/testapplication.js
parentjs: change in Error behaviour (diff)
downloadgpgme-5befa1c9751fe54b5ae87906d7f09772ce9de6ea.tar.gz
gpgme-5befa1c9751fe54b5ae87906d7f09772ce9de6ea.zip
js: reactivate timeout on connection
-- * A timeout of 5 seconds is activated for functions that do not require a pinentry. This definition is written to src/permittedOperations.js * testapplication.js now alerts the proper error codes and messages. * src/Errors.js fixed two typos in error handling
Diffstat (limited to 'lang/js/testapplication.js')
-rw-r--r--lang/js/testapplication.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/js/testapplication.js b/lang/js/testapplication.js
index f47299e8..b2cb4c23 100644
--- a/lang/js/testapplication.js
+++ b/lang/js/testapplication.js
@@ -33,7 +33,7 @@ document.addEventListener('DOMContentLoaded', function() {
document.getElementById('answer').value = answer.data;
}
}, function(errormsg){
- alert('Error: '+ errormsg);
+ alert( errormsg.code + ' ' + errormsg.msg);
});
});
@@ -47,7 +47,7 @@ document.addEventListener('DOMContentLoaded', function() {
document.getElementById('answer').value = answer.data;
}
}, function(errormsg){
- alert('Error: '+ errormsg);
+ alert( errormsg.code + ' ' + errormsg.msg);
});
});
},