| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…item exists (#3700) Also changed the ErrorId to "SymLinkExists".
| <data name="ItemExists" xml:space="preserve"> | ||
| <value>Item '{0}' already exists.</value> | ||
| </data> | ||
| </root> No newline at end of file |
There was a problem hiding this comment.
Please add Newline.
Sorry, something went wrong.
There was a problem hiding this comment.
Fixed
Sorry, something went wrong.
| $link.LinkType | Should BeExactly "SymbolicLink" | ||
| $link.Target | Should Be $nonFile | ||
| } | ||
| It "New-Item fails informatively when reversing Path and Target" { |
There was a problem hiding this comment.
Please make the title more clear.
Sorry, something went wrong.
There was a problem hiding this comment.
Fixed
Sorry, something went wrong.
Added newline to end of resource file.
| </data> | ||
| </root> No newline at end of file | ||
| <data name="ItemExists" xml:space="preserve"> | ||
| <value>Item '{0}' already exists.</value> |
There was a problem hiding this comment.
Maybe use the pattern from tests - "Path {0} to symbolic link already exists." ?
Sorry, something went wrong.
There was a problem hiding this comment.
How about "The path {0} already exists."? That's similar to the error message when New-Item attempts to create a file that already exists, substituting "path" for "file".
I think that "Path {0} to symbolic link..." suggests that the existing item is itself a symbolic link, which is not necessarily the case.
Sorry, something went wrong.
There was a problem hiding this comment.
In this context we should mention "symbolic link".
Maybe "Cannot create symbolic link because the path {0} already exists."
Sorry, something went wrong.
There was a problem hiding this comment.
I like that one. Fixed.
I also changed the name of the new string, to be a bit more clear about its use.
Sorry, something went wrong.
|
LGTM. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fix #3700
Improves the error displayed when attempting to create a SymbolicLink and the item named in -Path already exists.
Also changed the ErrorId to "SymLinkExists" to better identify the error.