aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/Errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'lang/js/src/Errors.js')
-rw-r--r--lang/js/src/Errors.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/src/Errors.js b/lang/js/src/Errors.js
index d26aab18..b71004a5 100644
--- a/lang/js/src/Errors.js
+++ b/lang/js/src/Errors.js
@@ -110,7 +110,7 @@ export function gpgme_error(code = 'GENERIC_ERROR', info){
}
return null;
} else if (code === 'GNUPG_ERROR'){
- return new GPGME_Error(code, info.msg);
+ return new GPGME_Error(code, info);
}
else {
return new GPGME_Error('GENERIC_ERROR');