@joebigelow / wix / commits / af83b04d

Let listeners adjust message levels; general messaging cleanup.

Bob Arnson committed Jan 17, 2020 at 21:02 UTC af83b04dc7b8c05607d3263835c39fdf001649fc
1 file changed -13
src/WixToolset.Data/Message.cs
-13
@@ -82,19 +82,6 @@ namespace WixToolset.Data
82 /// <value>The arguments for the format string.</value>
83 public object[] MessageArgs { get; }
84
85 - /// <summary>
86 - /// Makes a warning an error.
87 - /// </summary>
88 - public void ElevateWarningToError()
89 - {
90 - if (this.Level != MessageLevel.Warning)
91 - {
92 - throw new InvalidOperationException($"Cannot elevate {this.Level.ToString()} Message to an Error. Only Warning Messages can be elevated to an Error.");
93 - }
94 -
95 - this.Level = MessageLevel.Error;
96 - }
97 -
85 public override string ToString()
86 {
87 if (this.ResourceManager == null)