Skip to content

Commit

Permalink
Merge pull request #599 from atl-mk/issue-598/fix-synchronous-v2-migr…
Browse files Browse the repository at this point in the history
…ation-guide-global-error-handler

Fix #598 add async to v2 migration guide global error handler example
  • Loading branch information
seratch authored Aug 26, 2020
2 parents 5f2a6a3 + f51f9ca commit 12d767c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/_tutorials/ja_migration_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ app.action('some-action-id', async ({action, ack, say, logger}) => {
### グローバルエラーハンドラーによるエラーハンドリング

```javascript
app.error((error) => {
app.error(async (error) => {
// エラーの詳細をチェックして、メッセージ送信のリトライやアプリの停止などの対処を行う
console.error(error);
});
Expand Down
2 changes: 1 addition & 1 deletion docs/_tutorials/migration_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ app.action('some-action-id', async ({action, ack, say, logger}) => {
#### Handling Errors with the Global Error Handler

```javascript
app.error((error) => {
app.error(async (error) => {
// Check the details of the error to handle cases where you should retry sending a message or stop the app
console.error(error);
});
Expand Down

0 comments on commit 12d767c

Please sign in to comment.