Skip to content

Commit

Permalink
iOS Safari doesn't allow setting Error.message
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Apr 30, 2018
1 parent 27f027f commit 9afbda8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/openpgp.js
Expand Up @@ -577,7 +577,9 @@ function onError(message, error) {
util.print_debug_error(error);

// update error message
error.message = message + ': ' + error.message;
try {
error.message = message + ': ' + error.message;
} catch(e) {}

throw error;
}
Expand Down

0 comments on commit 9afbda8

Please sign in to comment.