aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2020-01-17 21:02:52 -0500
committerBob Arnson <bob@firegiant.com>2020-01-17 21:04:41 -0500
commitaf83b04dc7b8c05607d3263835c39fdf001649fc (patch)
tree94fde635c6b0869481af61de723648d294b8276e
parent3cb3464e12bcaee6b0555fce05b96a56e3f6c375 (diff)
downloadwix-af83b04dc7b8c05607d3263835c39fdf001649fc.tar.gz
wix-af83b04dc7b8c05607d3263835c39fdf001649fc.tar.bz2
wix-af83b04dc7b8c05607d3263835c39fdf001649fc.zip
Let listeners adjust message levels; general messaging cleanup.
-rw-r--r--src/WixToolset.Data/Message.cs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/WixToolset.Data/Message.cs b/src/WixToolset.Data/Message.cs
index 6cd4105c..85a402e5 100644
--- a/src/WixToolset.Data/Message.cs
+++ b/src/WixToolset.Data/Message.cs
@@ -82,19 +82,6 @@ namespace WixToolset.Data
82 /// <value>The arguments for the format string.</value> 82 /// <value>The arguments for the format string.</value>
83 public object[] MessageArgs { get; } 83 public object[] MessageArgs { get; }
84 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
98 public override string ToString() 85 public override string ToString()
99 { 86 {
100 if (this.ResourceManager == null) 87 if (this.ResourceManager == null)