diff options
author | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:25:40 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:25:40 -0800 |
commit | 155a6e96346e0cb3d9ab6f5372fa29b46ebaee89 (patch) | |
tree | 59d1f151bfde8068b6014b05b5c8cfea3402c974 /src/WixToolset.Core/Librarian.cs | |
parent | 6f1665ed759b31bd095f186f9239232c653597cd (diff) | |
download | wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.gz wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.bz2 wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.zip |
Integrate simplified message handling
Diffstat (limited to 'src/WixToolset.Core/Librarian.cs')
-rw-r--r-- | src/WixToolset.Core/Librarian.cs | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
67 | /// <param name="library">Library to validate.</param> | 67 | /// <param name="library">Library to validate.</param> |
68 | private Intermediate Validate(Intermediate library) | 68 | private Intermediate Validate(Intermediate library) |
69 | { | 69 | { |
70 | FindEntrySectionAndLoadSymbolsCommand find = new FindEntrySectionAndLoadSymbolsCommand(library.Sections); | 70 | FindEntrySectionAndLoadSymbolsCommand find = new FindEntrySectionAndLoadSymbolsCommand(this.Context.Messaging, library.Sections); |
71 | find.Execute(); | 71 | find.Execute(); |
72 | 72 | ||
73 | // TODO: Consider bringing this sort of verification back. | 73 | // TODO: Consider bringing this sort of verification back. |
@@ -80,7 +80,7 @@ namespace WixToolset.Core | |||
80 | // reportDupes.Execute(); | 80 | // reportDupes.Execute(); |
81 | // } | 81 | // } |
82 | 82 | ||
83 | return (Messaging.Instance.EncounteredError ? null : library); | 83 | return (this.Context.Messaging.EncounteredError ? null : library); |
84 | } | 84 | } |
85 | 85 | ||
86 | private static Dictionary<string, Localization> CollateLocalizations(IEnumerable<Localization> localizations) | 86 | private static Dictionary<string, Localization> CollateLocalizations(IEnumerable<Localization> localizations) |
@@ -130,7 +130,7 @@ namespace WixToolset.Core | |||
130 | } | 130 | } |
131 | else | 131 | else |
132 | { | 132 | { |
133 | this.Context.Messaging.OnMessage(WixDataErrors.FileNotFound(tuple.SourceLineNumbers, pathField.Path, tuple.Definition.Name)); | 133 | this.Context.Messaging.Write(ErrorMessages.FileNotFound(tuple.SourceLineNumbers, pathField.Path, tuple.Definition.Name)); |
134 | } | 134 | } |
135 | } | 135 | } |
136 | } | 136 | } |