Skip to content

Commit 6027284

Browse files
committed
refactor: don't log value in error message for type check
1 parent a9d60b1 commit 6027284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/DocsSearchBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class DocsSearchBar {
256256
const value = args[argument]
257257
if (typeof args[argument] !== type) {
258258
throw new Error(
259-
`Error: "${argument}" must be of type: ${type}. Found type: ${typeof value} ${value}`,
259+
`Error: "${argument}" must be of type: ${type}. Found type: ${typeof value}`,
260260
)
261261
}
262262
})

0 commit comments

Comments
 (0)