Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

change error message #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kurehajime
Copy link

change invalid token error message.
because invalid token error is output even if network error.

[before]
if invalid token and online.

$./slack-dump -t=INVALID_TOKEN
->ERROR: the token you used is not valid...

if valid token and offline.

$./slack-dump -t=VALID_TOKEN
->ERROR: the token you used is not valid...

[after]
if invalid token and online.

$./slack-dump -t=INVALID_TOKEN
->ERROR: Authentication failed.(invalid_auth)

if valid token and offline.

$./slack-dump -t=VALID_TOKEN
->ERROR: Authentication failed.(Post https://slack.com/api/auth.test: dial tcp: lookup slack.com: no such host)

無効なトークンによるエラーとネットワークエラーの切り分けができればありがたいな、という趣旨のプルリクエストです。

change authentication error message.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant