diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:24:16 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:24:16 -0800 |
| commit | f680e915f065026efd0301a76fd524f87b8c5f06 (patch) | |
| tree | 63b6a8d7b799b10d77e133209041a809f4f3d144 /src/WixToolset.Data/WixCorruptFileException.cs | |
| parent | 77dc8cd1acd5332aa0cb077c7e87d0678756969b (diff) | |
| download | wix-f680e915f065026efd0301a76fd524f87b8c5f06.tar.gz wix-f680e915f065026efd0301a76fd524f87b8c5f06.tar.bz2 wix-f680e915f065026efd0301a76fd524f87b8c5f06.zip | |
Simplify message handling
Diffstat (limited to 'src/WixToolset.Data/WixCorruptFileException.cs')
| -rw-r--r-- | src/WixToolset.Data/WixCorruptFileException.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WixToolset.Data/WixCorruptFileException.cs b/src/WixToolset.Data/WixCorruptFileException.cs index f663b92d..f77f0d8a 100644 --- a/src/WixToolset.Data/WixCorruptFileException.cs +++ b/src/WixToolset.Data/WixCorruptFileException.cs | |||
| @@ -10,7 +10,7 @@ namespace WixToolset.Data | |||
| 10 | public class WixCorruptFileException : WixException | 10 | public class WixCorruptFileException : WixException |
| 11 | { | 11 | { |
| 12 | public WixCorruptFileException(string path, FileFormat format, Exception innerException = null) | 12 | public WixCorruptFileException(string path, FileFormat format, Exception innerException = null) |
| 13 | : base(WixDataErrors.CorruptFileFormat(path, format.ToString().ToLowerInvariant()), innerException) | 13 | : base(ErrorMessages.CorruptFileFormat(path, format), innerException) |
| 14 | { | 14 | { |
| 15 | this.Path = path; | 15 | this.Path = path; |
| 16 | this.FileFormat = format; | 16 | this.FileFormat = format; |
| @@ -19,11 +19,11 @@ namespace WixToolset.Data | |||
| 19 | /// <summary> | 19 | /// <summary> |
| 20 | /// Gets the actual file format found in the file. | 20 | /// Gets the actual file format found in the file. |
| 21 | /// </summary> | 21 | /// </summary> |
| 22 | public FileFormat FileFormat { get; private set; } | 22 | public FileFormat FileFormat { get; } |
| 23 | 23 | ||
| 24 | /// <summary> | 24 | /// <summary> |
| 25 | /// Gets the path to the file with unexpected format. | 25 | /// Gets the path to the file with unexpected format. |
| 26 | /// </summary> | 26 | /// </summary> |
| 27 | public string Path { get; set; } | 27 | public string Path { get; } |
| 28 | } | 28 | } |
| 29 | } | 29 | } |
