GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — Get/Add-Content throws improved error when targeting a container by kvprasoon · Pull Request #7823 · PowerShell/PowerShell Conversation
Contributor
PR SummaryEnhancing the error message as per #7770 and #2686 PR Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
PRASOON KARUNAN V (kvprasoon)
requested review from
Bruce Payette (BrucePay) and
Andrew (anmenaga)
as code owners
|
There was an error while loading. Please reload this page.
|
Ilya (@iSazonov) I think more rules are added to CodeFactor, issues are in untouched lines. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We need another message for "write" cmdlets.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please fix the line.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please remove obvious comment.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please remove obvious comment.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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 Steve Lee (@SteveL-MSFT)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sure, that makes sense.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The package validation on NJsonSchema is a known issue not related to this PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Reopen the PR to restart all CIs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
PRASOON KARUNAN V (@kvprasoon) can you rebase off master to pick up test fixes? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Get/Add-Content throws improved error when targeting a container
CodeFactor Fix
Review comments changes
Error message changes as per review comments,
|
PRASOON KARUNAN V (@kvprasoon) I rebased for you. Further please create new branch in your fork for every new change (don't put commits in forked master). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ilya (@iSazonov) Sure, will do it, learning OSS collaboration from each PR... thanks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Get-Content throws confusing error when targeting a container Bad error message when using Get-Content with a Directory
There was an error while loading. Please reload this page.