Skip to content

Native Command Error Handling #261

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

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
bafe2b2
Added RFC Error View
theJasonHelmick Jul 31, 2019
bdd3ee9
update RFC error view
theJasonHelmick Jul 31, 2019
dd58c11
Added shorter reference code
theJasonHelmick Jul 31, 2019
d3ed694
update alternate view
theJasonHelmick Jul 31, 2019
5fd9c69
Added RFC Error View
theJasonHelmick Jul 31, 2019
3dd0560
update RFC error view
theJasonHelmick Jul 31, 2019
a7d6a75
Added shorter reference code
theJasonHelmick Jul 31, 2019
6faa7dc
update alternate view
theJasonHelmick Jul 31, 2019
c454366
updated comment due date on Error-View
theJasonHelmick Aug 7, 2019
fb60588
Update 1-Draft/RFC00XX-Update-Error-View.md
theJasonHelmick Aug 26, 2019
f4edfcd
review update for view name -simpleview
theJasonHelmick Aug 26, 2019
a6329e7
update to view name
theJasonHelmick Aug 26, 2019
0641bb2
fix unresolved merge conflict
theJasonHelmick Sep 3, 2019
8dabf42
Removed incorrect parameter -Oldest
theJasonHelmick Sep 3, 2019
35ed896
errorview-removed unneeded parameters
theJasonHelmick Sep 23, 2019
5cf273d
Errorview update to remove unneeded parameters
theJasonHelmick Sep 23, 2019
07af6d2
Changed view name from Concise to SimpleView
theJasonHelmick Sep 24, 2019
da03165
Added WriteErrorLine clarification
theJasonHelmick Sep 24, 2019
8cdd56a
Added example showing Inner exception
theJasonHelmick Sep 24, 2019
1bc65b1
Merge to my master
theJasonHelmick Sep 24, 2019
6de0c3e
updated normal and detailed view
theJasonHelmick Sep 24, 2019
697327c
added image of new error view
theJasonHelmick Sep 25, 2019
d6f6af4
Added image of errorview and adjusted carets
theJasonHelmick Sep 25, 2019
889cad4
Spelling correction
theJasonHelmick Sep 25, 2019
9439d35
Updated graphic display of error messages
theJasonHelmick Sep 25, 2019
51ec0f2
graphic update
theJasonHelmick Sep 25, 2019
1f272cd
edits to Overview
theJasonHelmick Sep 25, 2019
a58d4e8
update $errorview to enum
theJasonHelmick Sep 26, 2019
800f653
resolved conflict
theJasonHelmick Sep 26, 2019
ea14fcd
spelling corrections
theJasonHelmick Sep 26, 2019
46b2382
update for a new pr
theJasonHelmick Sep 26, 2019
b2f46ca
update to reflect view changes
theJasonHelmick Sep 30, 2019
0cef8c3
updated RFC Resolve-errorrecord definition
theJasonHelmick Oct 8, 2019
ec0b745
Corected typos
theJasonHelmick Oct 8, 2019
493a3a7
Updated RFC with Prefix conditions
theJasonHelmick Oct 8, 2019
8d0498e
update RFC to reflect new cmdlet name
theJasonHelmick Oct 15, 2019
34a3a62
updated RFC with Concise view as default view
theJasonHelmick Oct 21, 2019
3493c6b
Update RFC00XX-Update-Error-View.md
SteveL-MSFT Oct 23, 2019
04559ed
updated image to reflect cuurent code
theJasonHelmick Oct 24, 2019
eaecab0
update to reflect implementation
theJasonHelmick Jan 16, 2020
a97cbfe
update to match implementation - remove carets
theJasonHelmick Jan 16, 2020
0cfab18
update to correct readability flow
theJasonHelmick Jan 16, 2020
07807c7
update messageposition property information
theJasonHelmick Jan 16, 2020
e6cf938
Prep RFC0048 - Updated Error View for merging
joeyaiello Jan 29, 2020
20d1ed9
wip:NativeCommandErrorHandling
theJasonHelmick Sep 28, 2020
52579cb
Delete RFC0048-Update-Error-View.md
theJasonHelmick Oct 5, 2020
bb0a68d
Apply suggestions from code review
theJasonHelmick Oct 9, 2020
a53678c
Apply suggestions from code review
theJasonHelmick Oct 26, 2020
012e366
updated with PScommitee comments
theJasonHelmick Oct 26, 2020
821e898
updated with PSCommitee comments
theJasonHelmick Oct 27, 2020
8603d2b
Apply suggestions from code review
theJasonHelmick Oct 28, 2020
c7e1471
Committee suggestion updates
theJasonHelmick Oct 28, 2020
b9eb257
Committee suggestion updates
theJasonHelmick Oct 29, 2020
9642658
updated for PSCommittee
theJasonHelmick Nov 2, 2020
e46b595
updated for PSCommittee
theJasonHelmick Nov 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated graphic display of error messages
  • Loading branch information
theJasonHelmick committed Sep 25, 2019
commit 9439d35c084a64ad32980c3aa706a431459a1833
22 changes: 21 additions & 1 deletion 1-Draft/RFC00XX-Update-Error-View.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,27 @@ to make consistent with Verbose and Warning messages. This is a change to the ex
+ NormalView
+ CategoryView

- Simplified error message syntax from Interactive and script.
- Simplified error message syntax from Interactive and script. (See graphic below)

```powershell
PS C:\> Get-Childitem -Path c:\notreal
ERROR: Cannot find path ‘C:\notreal’ because it does not exist
```

```powershell
PS C:\> .\MyScript.ps1
ERROR: ItemNotFoundException
---> C:\GitHub\pri-errorview\RustTest\test.ps1
|
15 | Get-ChildItem -Path c:\notreal
| ^^^ Cannot find path 'C:\notreal' because it does not exist.
|
* Help: this is for additional help information

PS C:\> $error[0] | Resolve-ErrorRecord

**** Detailed message here ****
```

![test](.\RFC00XX-Update-Error-View.png)

Expand Down
Binary file modified 1-Draft/RFC00XX-Update-Error-View.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.