diff options
Diffstat (limited to 'lib/path.js')
-rw-r--r-- | lib/path.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/path.js b/lib/path.js index 0c9c656e66..c78883bbd3 100644 --- a/lib/path.js +++ b/lib/path.js @@ -338,7 +338,7 @@ win32.dirname = function(path) { win32.basename = function(path, ext) { if (ext !== undefined && typeof ext !== 'string') - throw new TypeError('ext must be a string'); + throw new TypeError('"ext" argument must be a string'); var f = win32SplitPath(path)[2]; // TODO: make this comparison case-insensitive on windows? @@ -357,7 +357,7 @@ win32.extname = function(path) { win32.format = function(pathObject) { if (pathObject === null || typeof pathObject !== 'object') { throw new TypeError( - "Parameter 'pathObject' must be an object, not " + typeof pathObject + 'Parameter "pathObject" must be an object, not ' + typeof pathObject ); } @@ -365,7 +365,7 @@ win32.format = function(pathObject) { if (typeof root !== 'string') { throw new TypeError( - "'pathObject.root' must be a string or undefined, not " + + '"pathObject.root" must be a string or undefined, not ' + typeof pathObject.root ); } @@ -547,7 +547,7 @@ posix.dirname = function(path) { posix.basename = function(path, ext) { if (ext !== undefined && typeof ext !== 'string') - throw new TypeError('ext must be a string'); + throw new TypeError('"ext" argument must be a string'); var f = posixSplitPath(path)[2]; @@ -574,7 +574,7 @@ posix.format = function(pathObject) { if (typeof root !== 'string') { throw new TypeError( - "'pathObject.root' must be a string or undefined, not " + + '"pathObject.root" must be a string or undefined, not ' + typeof pathObject.root ); } |