Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update error message
  • Loading branch information
aduh95 authored Oct 27, 2022
commit 96230ee286295825d4eab3d4b4eac0d1d1857c99
2 changes: 1 addition & 1 deletion lib/internal/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ const validateObject = hideStackFrames(
const validateDictionary = hideStackFrames(
(value, name) => {
if (value != null && typeof value !== 'object' && typeof value !== 'function') {
throw new ERR_INVALID_ARG_TYPE(name, 'Object or Function', value);
throw new ERR_INVALID_ARG_TYPE(name, 'a dictionary', value);
}
});

Expand Down