diff --git a/src/strophe.mam.js b/src/strophe.mam.js index 86248b7..9ce37db 100644 --- a/src/strophe.mam.js +++ b/src/strophe.mam.js @@ -55,6 +55,10 @@ Strophe.addConnectionPlugin('mam', { return this._c.sendIQ(iq, function(){ _c.deleteHandler(handler); onComplete.apply(this, arguments); - }); + }, + function(err){ + //error callBack function + console.log("Error Response from server:", err); + }); } });