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

Show better error when slack subdomain incorrect #261

Merged
merged 1 commit into from
Jan 5, 2017

Conversation

jamo
Copy link
Contributor

@jamo jamo commented Jan 5, 2017

e.g when SLACK_SUBDOMAIN="<zeit-community>" following error would show up:

/home/nowuser/src/dist/slack.js:53
        (res.body.channels || []).forEach(function (channel) {
            ^
TypeError: Cannot read property 'body' of undefined

When really err is populated and contains real error.

e.g when `SLACK_SUBDOMAIN="<zeit-community>"` following error would show up:
```
/home/nowuser/src/dist/slack.js:53
        (res.body.channels || []).forEach(function (channel) {
            ^
TypeError: Cannot read property 'body' of undefined
```

When really err is populated and contains real error.
@rauchg rauchg merged commit e9749ef into rauchg:master Jan 5, 2017
@jamo jamo deleted the fix/auth-error-exception branch January 5, 2017 19:28
mexisme pushed a commit to devopsnz/slackin that referenced this pull request Mar 10, 2017
e.g when `SLACK_SUBDOMAIN="<zeit-community>"` following error would show up:
```
/home/nowuser/src/dist/slack.js:53
        (res.body.channels || []).forEach(function (channel) {
            ^
TypeError: Cannot read property 'body' of undefined
```

When really err is populated and contains real error.
mexisme pushed a commit to devopsnz/slackin that referenced this pull request Mar 10, 2017
e.g when `SLACK_SUBDOMAIN="<zeit-community>"` following error would show up:
```
/home/nowuser/src/dist/slack.js:53
        (res.body.channels || []).forEach(function (channel) {
            ^
TypeError: Cannot read property 'body' of undefined
```

When really err is populated and contains real error.
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

Successfully merging this pull request may close these issues.

2 participants