Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

variable name error should be err #2

Merged
merged 1 commit into from

2 participants

@gkrcode

No description provided.

@podviaznikov podviaznikov merged commit 36ace51 into circuithub:master
@podviaznikov

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 4, 2012
  1. variable name error should be err

    gkr authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/mail.listener.coffee
View
8 lib/mail.listener.coffee
@@ -20,7 +20,7 @@ class MailListener extends EventEmitter
# 1. connect to imap server
@imap.connect (err) =>
if err
- util.log "error connecting to mail server #{error}"
+ util.log "error connecting to mail server #{err}"
@emit "error", err
else
util.log "successfully connected to mail server"
@@ -28,7 +28,7 @@ class MailListener extends EventEmitter
# 2. open INBOX
@imap.openBox "INBOX", false, (err) =>
if err
- util.log "error opening mail box #{error}"
+ util.log "error opening mail box #{err}"
@emit "error", err
else
util.log "successfully opened mail box"
@@ -39,7 +39,7 @@ class MailListener extends EventEmitter
# 4. find all unseen emails
@imap.search ["UNSEEN"], (err, searchResults) =>
if err
- util.log "error searching unseen emails #{error}"
+ util.log "error searching unseen emails #{err}"
@emit "error", err
else
util.log "found #{searchResults.length} emails"
@@ -64,4 +64,4 @@ class MailListener extends EventEmitter
@imap.logout =>
@emit "server:disconnected"
-module.exports = MailListener
+module.exports = MailListener
Something went wrong with that request. Please try again.