-
Notifications
You must be signed in to change notification settings - Fork 575
Improves Exception Message to show what part is missing. - #1971 #1974
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
base: main
Are you sure you want to change the base?
Conversation
| <IncludeFrameworkShims>true</IncludeFrameworkShims> | ||
| <TargetFrameworks>$(ProductTargetFrameworks)</TargetFrameworks> | ||
| </PropertyGroup> | ||
| <PropertyGroup> |
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.
looks like just whitespace change? tabs/spaces?
| try | ||
| { | ||
| // TODO: should we delay load? | ||
| part = _openXmlPackage.Features.GetRequired<IPackageFeature>().Package.GetPart(uriTarget); |
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.
Could we make the Getpart return null when there's this failure? Then we can just check for a null
| uriTarget.OriginalString, ex.Message); | ||
| throw new InvalidOperationException(errorMessage); | ||
| } | ||
| catch (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.
this isn't necessary
mikeebowen
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
Fixes #1971