fs: fix the error report on fs.link(Sync) by yorkie · Pull Request #3917 · nodejs/node (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation10 Commits2 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

yorkie

As the Node.js documentation specified:

fs.link(srcpath, dstpath, callback)

But when we run:

We will get the below:

TypeError: dest path must be a string at TypeError (native) at Object.fs.link (fs.js:915:11) at repl:1:4

Just correct the message of relevant 2 errors in this PR :-)

@yorkie

@mscdex mscdex added the fs

Issues and PRs related to the fs subsystem / file system.

label

Nov 19, 2015

@cjihrig

@cjihrig

@jasnell

good catch! it may seem minor but a quick test case may be worthwhile. otherwise LGTM

@yorkie

@yorkie

@yorkie

Test cases has been added, @cjihrig could you please run CI again, sorry :-(

@jasnell

@cjihrig

@jasnell

The @nodejs/ctc decided on this weeks call to handle error message changes as semver-major for the time being... I think this qualifies even tho the error messages were just reversed. Tagging this as major just in case but would like some additional input.

@jasnell jasnell added the semver-major

PRs that contain breaking changes and should be released in the next major version.

label

Nov 21, 2015

jasnell pushed a commit that referenced this pull request

Nov 21, 2015

@yorkie @jasnell

As the Node.js documentation specified:

fs.link(srcpath, dstpath, callback)

But when we run:

> fs.link()

We will get the below:

TypeError: dest path must be a string
    at TypeError (native)
    at Object.fs.link (fs.js:915:11)
    at repl:1:4

Just correct the message of relevant 2 errors in this PR :-)

PR-URL: #3917 Reviewed-By: Colin Ihrig cjihrig@gmail.com Reviewed-By: James M Snell jasnell@gmail.com

@jasnell

Landed as 090f9dc ... @yorkie, I went ahead and used your description of the issue from the PR text as the commit log message. In future commits, please make sure to add at least some description in the commit log message :-) Thanks again for the commits!!

@yorkie

jasnell added a commit that referenced this pull request

Apr 26, 2016

@jasnell

The following significant (semver-major) changes have been made since the previous Node v5.0.0 release.

jasnell added a commit that referenced this pull request

Apr 26, 2016

@jasnell

The following significant (semver-major) changes have been made since the previous Node v5.0.0 release.

jasnell added a commit that referenced this pull request

Apr 26, 2016

@jasnell

The following significant (semver-major) changes have been made since the previous Node v5.0.0 release.

jasnell added a commit that referenced this pull request

Apr 26, 2016

@jasnell

The following significant (semver-major) changes have been made since the previous Node v5.0.0 release.

jasnell added a commit that referenced this pull request

Apr 26, 2016

@jasnell

The following significant (semver-major) changes have been made since the previous Node v5.0.0 release.

Labels

fs

Issues and PRs related to the fs subsystem / file system.

semver-major

PRs that contain breaking changes and should be released in the next major version.