Permalink
Browse files

Fixed convertErr configuration of linkedin module.

  • Loading branch information...
1 parent a04be9d commit 9a32c3d118ac32e69388e4bb8188f04cc048e719 @bnoguchi committed Jul 6, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/modules/linkedin.js
View
@@ -43,7 +43,8 @@ oauthModule.submodule('linkedin')
return promise;
})
.convertErr( function (data) {
- var errJson = JSON.parse(data.data)
- , errMsg = errJson.message;
- return new Error(errMsg);
+// var errJson = JSON.parse(data.data)
+// , errMsg = errJson.message;
+ var errMsg = data.data;
+ return new Error("LinkedIn sent back a " + data.statusCode + " response with data = " + errMsg);
});

0 comments on commit 9a32c3d

Please sign in to comment.