@joebigelow / wix-1 / commits / 0459e720

Add code page error message with source-line numbers.

Bob Arnson committed Sep 6, 2018 at 20:26 UTC 0459e7204648c6915f9ee89bd6e292d506a505fd
1 file changed +5
src/WixToolset.Data/ErrorMessages.cs
+5
@@ -904,6 +904,11 @@ namespace WixToolset.Data
904 return Message(null, Ids.IllegalCodepage, "The code page '{0}' is not a valid Windows code page. Update the database's code page by modifying one of the following attributes: Product/@Codepage, Module/@Codepage, Patch/@Codepage, PatchCreation/@Codepage, or WixLocalization/@Codepage.", codepage);
905 }
906
907 + public static Message IllegalCodepage(SourceLineNumber sourceLineNumbers, int codepage)
908 + {
909 + return Message(sourceLineNumbers, Ids.IllegalCodepage, "The code page '{0}' is not a valid Windows code page. Update the database's code page by modifying one of the following attributes: Product/@Codepage, Module/@Codepage, Patch/@Codepage, PatchCreation/@Codepage, or WixLocalization/@Codepage.", codepage);
910 + }
911 +
912 public static Message IllegalCodepageAttribute(SourceLineNumber sourceLineNumbers, string codepage, string elementName, string attributeName)
913 {
914 return Message(sourceLineNumbers, Ids.IllegalCodepageAttribute, "The code page '{0}' is not a valid Windows code page. Please check the {1}/@{2} attribute value in your source file.", codepage, elementName, attributeName);