js: Fix errorDetails of GPGME_Signature

* lang/js/src/Signature.js (GPGME_Signature.errorDetails):
Access properties from the summary object.
This commit is contained in:
Thomas Oberndörfer 2018-09-10 13:11:48 +02:00 committed by Andre Heinecke
parent 2375959180
commit dd7d37ca21
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -142,8 +142,8 @@ class GPGME_Signature {
'sys-error'];
let result = {};
for (let i=0; i< properties.length; i++){
if ( this._rawSigObject.hasOwnProperty(properties[i]) ){
result[properties[i]] = this._rawSigObject[properties[i]];
if ( this._rawSigObject.summary.hasOwnProperty(properties[i]) ){
result[properties[i]] = this._rawSigObject.summary[properties[i]];
}
}
return result;