-
Notifications
You must be signed in to change notification settings - Fork 1
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
ReportCard.js causes a crash if result object is undefined #10
Comments
There is an issue assigned to me that discusses about error handling. I guess this will come under that issue. Can you check? I'm planning to work on this today. |
I refactored a lot of the ReportCard.js code yesterday to help make it more testable. The above error should have been fixed in: 691a203 |
Hey, sorry didn't see that, maybe we should merge master into mvp-cards? On Oct 18, 2016 11:28 AM, "Tomas Holderness" notifications@github.com
|
Yes - probably good to do this incrementally. I've finished updating with the ReportCard.js logic for the time being, but now working on Bot.js. |
Hi @abrahamq - now you've pulled latest master to MVP can we close this? |
I think so, let me make sure tonight and I'll close it. On Oct 26, 2016 3:54 PM, "Tomas Holderness" notifications@github.com
|
Putting this here so I remember to fix it later.
I think we're not doing error checking correctly in ReportCard.js.
/Users/abrahamq/Documents/urop/cognicity-grasp/ReportCard.js:157
else if (result[0].received === false){
^
TypeError: Cannot read property 'received' of undefined
at /Users/abrahamq/Documents/urop/cognicity-grasp/ReportCard.js:157:29
at null. (/Users/abrahamq/Documents/urop/cognicity-grasp/ReportCard.js:85:6)
at Query.handleReadyForQuery (/Users/abrahamq/Documents/urop/cognicity-grasp/node_modules/pg/lib/query.js:114:10)
at null. (/Users/abrahamq/Documents/urop/cognicity-grasp/node_modules/pg/lib/client.js:172:19)
at emitOne (events.js:82:20)
at emit (events.js:169:7)
at Socket. (/Users/abrahamq/Documents/urop/cognicity-grasp/node_modules/pg/lib/connection.js:121:12)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:146:16)
The text was updated successfully, but these errors were encountered: