microsoft / XLIFF2-Object-Model

If you’re looking to store localization data and propagate it through your localization pipeline allowing tools to interoperate then you may want to use the XLIFF 2.0 object model. The XLIFF 2.0 object model implements the OASIS Standard for the XLIFF 2.0 specification as defined at http://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html.
Other
86 stars 25 forks source link

ViewValidations method in sample code doesn't show the actual validation problem #21

Closed simonech closed 5 years ago

simonech commented 7 years ago

When running the sample code with an empty XliffDocument I get

ValidationException Details:
  'SelectorPath': '#'

Which is pretty useless. Instead it should also print the actual exception message

Something more like

ValidationException Details:
The element must contain one or more Files.
  'SelectorPath': '#'
marcta76 commented 5 years ago

This is fixed in 5375c26