Skip to content

Commit

Permalink
Let user know error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Sep 18, 2019
1 parent 8af6281 commit 8042e0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/interactions/leaderAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const interactionLeaderAdd = (bot, message) => {
})
.catch(err => {
console.error(err)
bot.whisper(message, transcript('errors.general', { err }))
})
})
}
Expand Down
1 change: 1 addition & 0 deletions src/text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ tutorial:
Great! Now I'll roleplay what will happen right after your first meeting
by posting in <#${this.channel}>
errors:
general: 'Something went wrong: \`${this.err}\`'
memory:
- 'I think I’m suffering from amnesia... I’m trying to recall what we were talking about, but all that comes to mind is \`{${this.err}}\`'
- 'Hmmm... something’s on the tip of my tongue, but all I can think is \`${this.err}\`'
Expand Down

0 comments on commit 8042e0d

Please sign in to comment.