Skip to content
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

If Paket crashes to some invalid user file: let's display the file to user so he/she can fix it. #730

Merged
merged 3 commits into from
Mar 28, 2015

Conversation

Thorium
Copy link
Member

@Thorium Thorium commented Mar 27, 2015

If Paket crashes to some invalid user file: let's display the file to user so he/she can fix it.

XDocument.Load(configFilePath, LoadOptions.PreserveWhitespace)
with
| :? System.Xml.XmlException as ex ->
printfn "Illegal xml in file: %s" configFilePath
Copy link
Member

Choose a reason for hiding this comment

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

could you please use verbosefn

Copy link
Member Author

Choose a reason for hiding this comment

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

To test this code: Put some empty App.config file to your project and try to convert from nuget to paket.

as Steffen recommended.
@forki
Copy link
Member

forki commented Mar 28, 2015

thanks

forki added a commit that referenced this pull request Mar 28, 2015
If Paket crashes to some invalid user file: let's display the file to user so he/she can fix it.
@forki forki merged commit 84c6891 into fsprojects:master Mar 28, 2015
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.

None yet

2 participants