Skip to content

Commit

Permalink
change エラーメッセージの変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yuta0801 committed Jul 29, 2017
1 parent 2abb913 commit 9a3d3ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class YouTube extends EventEmitter {
} else if (res.statusCode != 200) {
this.emit('error', json);
} else if (!json.items[0]) {
this.emit('error', 'Nothing live');
this.emit('error', 'Can not find live');
} else {
this.liveId = json.items[0].id.videoId;
this.getChatId();
Expand All @@ -31,7 +31,7 @@ class YouTube extends EventEmitter {
} else if (res.statusCode != 200) {
this.emit('error', json);
} else if (!json.items.length) {
this.emit('error', 'Nothing live chat');
this.emit('error', 'Can not find chat');
} else {
this.chatId = json.items[0].liveStreamingDetails.activeLiveChatId;
this.emit('ready', null);
Expand Down

0 comments on commit 9a3d3ff

Please sign in to comment.