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/WixUnexpectedFileFormatException.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/WixToolset.Data/WixUnexpectedFileFormatException.cs') diff --git a/src/WixToolset.Data/WixUnexpectedFileFormatException.cs b/src/WixToolset.Data/WixUnexpectedFileFormatException.cs index 4d1e39e9..340fb4d7 100644 --- a/src/WixToolset.Data/WixUnexpectedFileFormatException.cs +++ b/src/WixToolset.Data/WixUnexpectedFileFormatException.cs @@ -10,7 +10,7 @@ namespace WixToolset.Data public class WixUnexpectedFileFormatException : WixException { public WixUnexpectedFileFormatException(string path, FileFormat expectedFormat, FileFormat format, Exception innerException = null) - : base(WixDataErrors.UnexpectedFileFormat(path, expectedFormat.ToString().ToLowerInvariant(), format.ToString().ToLowerInvariant()), innerException) + : base(ErrorMessages.UnexpectedFileFormat(path, expectedFormat, format), innerException) { this.Path = path; this.ExpectedFileFormat = expectedFormat; @@ -20,12 +20,12 @@ namespace WixToolset.Data /// /// Gets the expected file format. /// - public FileFormat ExpectedFileFormat { get; private set; } + public FileFormat ExpectedFileFormat { get; } /// /// 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. -- cgit v1.2.3-55-g6feb