Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error function missing #2

Closed
rickwaugh1 opened this issue Aug 30, 2013 · 2 comments
Closed

Error function missing #2

rickwaugh1 opened this issue Aug 30, 2013 · 2 comments

Comments

@rickwaugh1
Copy link

Line 106 of Twitter.js
error(err, response, body);

Getting an error that says it's not defined:

        error(err, response, body);
        ^

TypeError: undefined is not a function
at /Users/rickwaugh/Documents/svn/ESP/node_server/trunk/esp/node_modules/twitter-js-client/lib/Twitter.js:106:13
at passBackControl (/Users/rickwaugh/Documents/svn/ESP/node_server/trunk/esp/node_modules/twitter-js-client/node_modules/oauth/lib/oauth.js:374:13)
at IncomingMessage. (/Users/rickwaugh/Documents/svn/ESP/node_server/trunk/esp/node_modules/twitter-js-client/node_modules/oauth/lib/oauth.js:386:9)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:883:14
at process._tickCallback (node.js:415:13)

@rickwaugh1
Copy link
Author

I think I see, I need to provide the function as a parameter on the call? Your documentation needs some work, but I like the module.

@BoyCook
Copy link
Owner

BoyCook commented Sep 3, 2013

Hi @rickwaugh1. It's always a good idea to read the tests to see how the code works, but I've also added some extra documentation to show the usage.

@BoyCook BoyCook closed this as completed Sep 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants