Skip to content

Conversation

@kvprasoon
Copy link
Contributor

PR Summary

Fix #7770
Fix #2686

Enhancing the error message as per #7770 and #2686

PR Checklist

@kvprasoon
Copy link
Contributor Author

kvprasoon commented Sep 20, 2018

@iSazonov I think more rules are added to CodeFactor, issues are in untouched lines.
Even CI failure is something different.

Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the line.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove obvious comment.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove obvious comment.

Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, that makes sense.

Copy link
Member

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.

@SteveL-MSFT
Copy link
Member

The package validation on NJsonSchema is a known issue not related to this PR

Copy link
Member

@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iSazonov
Copy link
Collaborator

Reopen the PR to restart all CIs.

@iSazonov iSazonov closed this Sep 23, 2018
@iSazonov iSazonov reopened this Sep 23, 2018
@SteveL-MSFT
Copy link
Member

@kvprasoon can you rebase off master to pick up test fixes?

@iSazonov iSazonov self-assigned this Sep 25, 2018
Get/Add-Content throws improved error when targeting a container
CodeFactor Fix
Review comments changes
Error message changes as per review comments,
@iSazonov
Copy link
Collaborator

@kvprasoon I rebased for you.

Further please create new branch in your fork for every new change (don't put commits in forked master).

@kvprasoon
Copy link
Contributor Author

kvprasoon commented Sep 28, 2018

@iSazonov Sure, will do it, learning OSS collaboration from each PR... thanks

@iSazonov iSazonov merged commit e6702fe into PowerShell:master Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

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

3 participants