Commit 3e178848 authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by Refael Ackermann
Browse files

errors: improve ERR_INVALID_ARG_TYPE

The error message might be misleading if an object property
was the issue and not the argument itself.

Fix this by checking if a argument or a property is passed
to the handler function.

PR-URL: https://github.com/nodejs/node/pull/13730


Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
Reviewed-By: default avatarTimothy Gu <timothygu99@gmail.com>
Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarTobias Nießen <tniessen@tnie.de>
Reviewed-By: default avatarMichael Dawson <michael_dawson@ca.ibm.com>
parent 2a46e57d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment