/Users/nick/dev/tutor/lib/gatherer/printings.js:17
if (res.statusCode !== 200) {
^
TypeError: Cannot read property 'statusCode' of undefined
at Request.module.exports [as _callback] (/Users/nick/dev/tutor/lib/gatherer/printings.js:17:14)
at Request.init.self.callback (/Users/nick/dev/tutor/node_modules/request/main.js:122:22)
at Request.EventEmitter.emit (events.js:88:17)
at ClientRequest.Request.init.self.clientErrorHandler (/Users/nick/dev/tutor/node_modules/request/main.js:225:10)
at ClientRequest.EventEmitter.emit (events.js:88:17)
at Socket.socketErrorListener (http.js:1330:9)
at Socket.EventEmitter.emit (events.js:88:17)
at Socket.connect.require.lookup.addressType (net.js:697:16)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
By comparison, .set returns an error object to the callback under the same conditions, which seems like the right behavior.
By comparison, .set returns an error object to the callback under the same conditions, which seems like the right behavior.