dungpa/fantomas — pull request #78 by dungpa (2013-07-12 15:01:30+00:00)
Title: Present error dialogs while formatting fails

This pull request solves #35.

We throw an FormatException in the following cases:

- There are some error nodes in ASTs (see `ParsingError` pattern)
- There are some not-yet-supported constructs such as inline ILs (see `UnsupportedExpr` pattern).
- The input isn't whitespace while output has only whitespace. This is due to produced F# ASTs are incomplete.

When an exception is thrown, we keep original strings and present an error dialog.

@ovatsus Can you review this?