Skip to content

Commit 5fe74e5

Browse files
authored
fix misattributed property parent in deprecation warning: request.elapsedTime -> reply.elapsedTime (fastify#5299)
1 parent 9c03896 commit 5fe74e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/warnings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const FSTDEP019 = createDeprecation({
7979

8080
const FSTDEP020 = createDeprecation({
8181
code: 'FSTDEP020',
82-
message: 'You are using the deprecated "reply.getResponseTime()"" method. Use the "request.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'
82+
message: 'You are using the deprecated "reply.getResponseTime()" method. Use the "reply.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'
8383
})
8484

8585
const FSTWRN001 = createWarning({

0 commit comments

Comments
 (0)