diff options
| author | Bob Arnson <bob@joyofsetup.com> | 2018-09-06 20:26:49 -0400 |
|---|---|---|
| committer | Bob Arnson <bob@joyofsetup.com> | 2018-09-06 20:26:49 -0400 |
| commit | 0459e7204648c6915f9ee89bd6e292d506a505fd (patch) | |
| tree | d7a4dec1d395430881d3484be36cb7ba264a40e7 /src | |
| parent | 647843e5c749c8cdabad423a33197056ed1fb1d0 (diff) | |
| download | wix-0459e7204648c6915f9ee89bd6e292d506a505fd.tar.gz wix-0459e7204648c6915f9ee89bd6e292d506a505fd.tar.bz2 wix-0459e7204648c6915f9ee89bd6e292d506a505fd.zip | |
Add code page error message with source-line numbers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Data/ErrorMessages.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/WixToolset.Data/ErrorMessages.cs b/src/WixToolset.Data/ErrorMessages.cs index 9b59d6b9..48c1b44b 100644 --- a/src/WixToolset.Data/ErrorMessages.cs +++ b/src/WixToolset.Data/ErrorMessages.cs | |||
| @@ -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); | 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 | } | 905 | } |
| 906 | 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 | |||
| 907 | public static Message IllegalCodepageAttribute(SourceLineNumber sourceLineNumbers, string codepage, string elementName, string attributeName) | 912 | public static Message IllegalCodepageAttribute(SourceLineNumber sourceLineNumbers, string codepage, string elementName, string attributeName) |
| 908 | { | 913 | { |
| 909 | 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); | 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); |
