Mercurial > xmpp-account-manager
diff vcard.js @ 32:b15e1581c3d4
Allow iq error to not have a <text/>.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 23 Dec 2018 20:08:40 +0100 |
parents | e561bdd81777 |
children | 038cab68fa3a |
line wrap: on
line diff
--- a/vcard.js +++ b/vcard.js @@ -42,8 +42,7 @@ function initVCard(connection) { function onVCard4RetrievalError(iq, string) { if (!string) { - const [condition, text] = parseErrorIq(iq); - const string = condition + ': ' + text; + string = parseErrorIq(iq); } string = 'Failed to retrieve vCard4: ' + string; console.log(string); @@ -82,8 +81,8 @@ function initVCard(connection) { function onVCard4ChangeError(iq) { - const [condition, text] = parseErrorIq(iq); - const string = 'Failed to set vCard4: ' + condition + ': ' + text; + const string = parseErrorIq(iq); + const string = 'Failed to set vCard4: ' + string; console.log(string); spinnerError(spinner_img, string); }