Skip to content

Commit

Permalink
docs: add changeset and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Waidmann authored and jmcdo29 committed Jun 14, 2024
1 parent 6aba508 commit 16467c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-icons-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@nestjs/throttler': minor
---

Add dynamic error messages based on context and ThrottlerLimitDetail
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ If you need to set up storages instead, or want to use a some of the above optio
</tr>
<tr>
<td><code>errorMessage</code></td>
<td>a <code>string</code> which overrides the default throttler error message</td>
<td>a <code>string</code> OR a function that takes in the <code>ExecutionContext</code> and the <code>ThrottlerLimitDetail</code> and returns a <code>string</code> which overrides the default throttler error message</td>
</tr>
<tr>
<td><code>getTracker</code></td>
Expand Down

0 comments on commit 16467c1

Please sign in to comment.