From 155a6e96346e0cb3d9ab6f5372fa29b46ebaee89 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 19 Dec 2017 12:25:40 -0800 Subject: Integrate simplified message handling --- src/WixToolset.Core/Librarian.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/WixToolset.Core/Librarian.cs') diff --git a/src/WixToolset.Core/Librarian.cs b/src/WixToolset.Core/Librarian.cs index 50357d8a..a64d77dd 100644 --- a/src/WixToolset.Core/Librarian.cs +++ b/src/WixToolset.Core/Librarian.cs @@ -67,7 +67,7 @@ namespace WixToolset.Core /// Library to validate. private Intermediate Validate(Intermediate library) { - FindEntrySectionAndLoadSymbolsCommand find = new FindEntrySectionAndLoadSymbolsCommand(library.Sections); + FindEntrySectionAndLoadSymbolsCommand find = new FindEntrySectionAndLoadSymbolsCommand(this.Context.Messaging, library.Sections); find.Execute(); // TODO: Consider bringing this sort of verification back. @@ -80,7 +80,7 @@ namespace WixToolset.Core // reportDupes.Execute(); // } - return (Messaging.Instance.EncounteredError ? null : library); + return (this.Context.Messaging.EncounteredError ? null : library); } private static Dictionary CollateLocalizations(IEnumerable localizations) @@ -130,7 +130,7 @@ namespace WixToolset.Core } else { - this.Context.Messaging.OnMessage(WixDataErrors.FileNotFound(tuple.SourceLineNumbers, pathField.Path, tuple.Definition.Name)); + this.Context.Messaging.Write(ErrorMessages.FileNotFound(tuple.SourceLineNumbers, pathField.Path, tuple.Definition.Name)); } } } -- cgit v1.2.3-55-g6feb