Skip to content

Commit

Permalink
Improve error message for standard patterns.
Browse files Browse the repository at this point in the history
Equivalent to 33c5f4a, but back when we still had resource files.

Fixes #971 in the 2.2.x branch.
  • Loading branch information
jskeet committed Oct 14, 2017
1 parent 5621637 commit 00fed9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NodaTime/Properties/Messages.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/NodaTime/Properties/Messages.resx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
<value>Internal Error: The specified ParseFailureKind is unknown [{0}].</value>
</data>
<data name="Parse_UnknownStandardFormat" xml:space="preserve">
<value>The standard format "{0}" is not valid for the {1} type.</value>
<value>The standard format "{0}" is not valid for the {1} type. If the pattern was intended to be a custom format, escape it with a percent sign: "%{0}".</value>
</data>
<data name="Parse_UnparsableValue" xml:space="preserve">
<value>{0} Value being parsed: '{1}'. (^ indicates error position.)</value>
Expand Down

0 comments on commit 00fed9a

Please sign in to comment.