We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ed20bb commit 24e6cf2Copy full SHA for 24e6cf2
classes/semver.js
@@ -16,7 +16,7 @@ class SemVer {
16
version = version.version
17
}
18
} else if (typeof version !== 'string') {
19
- throw new TypeError(`Invalid Version: ${require('util').inspect(version)}`)
+ throw new TypeError(`Invalid Version: ${version}`)
20
21
22
if (version.length > MAX_LENGTH) {
test/functions/parse.js
@@ -20,7 +20,7 @@ t.test('throw errors if asked to', t => {
parse([], null, true)
}, {
name: 'TypeError',
23
- message: 'Invalid Version: []',
+ message: 'Invalid Version: ',
24
})
25
t.end()
26
0 commit comments