Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added `convertErr` to twitter module.

  • Loading branch information...
commit b41775b6968428def385c7dc0644265a73dd5e1e 1 parent f85dfa0
@bnoguchi authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/modules/twitter.js
View
3  lib/modules/twitter.js
@@ -14,4 +14,7 @@ oauthModule.submodule('twitter')
promise.fulfill(oauthUser);
});
return promise;
+ })
+ .convertErr( function (data) {
+ return new Error(data.data.match(/<error>(.+)<\/error>/)[1]);
});
Please sign in to comment.
Something went wrong with that request. Please try again.