From f680e915f065026efd0301a76fd524f87b8c5f06 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 19 Dec 2017 12:24:16 -0800 Subject: Simplify message handling --- src/WixToolset.Data/WixCorruptFileException.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/WixToolset.Data/WixCorruptFileException.cs') 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 public class WixCorruptFileException : WixException { public WixCorruptFileException(string path, FileFormat format, Exception innerException = null) - : base(WixDataErrors.CorruptFileFormat(path, format.ToString().ToLowerInvariant()), innerException) + : base(ErrorMessages.CorruptFileFormat(path, format), innerException) { this.Path = path; this.FileFormat = format; @@ -19,11 +19,11 @@ namespace WixToolset.Data /// /// Gets the actual file format found in the file. /// - public FileFormat FileFormat { get; private set; } + public FileFormat FileFormat { get; } /// /// Gets the path to the file with unexpected format. /// - public string Path { get; set; } + public string Path { get; } } } -- cgit v1.2.3-55-g6feb