-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Get/Add-Content throws improved error when targeting a container #7823
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 and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@iSazonov I think more rules are added to CodeFactor, issues are in untouched lines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need another message for "write" cmdlets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added different error message for Write to container exception.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove obvious comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove obvious comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer {0} on end of the string because we support long paths.
Unable to write content because it is a directory: {0}For GetContainerContentException too.
/cc @SteveL-MSFT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, that makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the updated error messages are fine, even for GetContainerContentException.
|
The package validation on NJsonSchema is a known issue not related to this PR |
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Reopen the PR to restart all CIs. |
|
@kvprasoon can you rebase off master to pick up test fixes? |
Get/Add-Content throws improved error when targeting a container
CodeFactor Fix
Review comments changes
Error message changes as per review comments,
|
@kvprasoon I rebased for you. Further please create new branch in your fork for every new change (don't put commits in forked master). |
|
@iSazonov Sure, will do it, learning OSS collaboration from each PR... thanks |
PR Summary
Fix #7770
Fix #2686
Enhancing the error message as per #7770 and #2686
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests