aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/CommandLine/BuildCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/CommandLine/BuildCommand.cs')
-rw-r--r--src/WixToolset.Core/CommandLine/BuildCommand.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/WixToolset.Core/CommandLine/BuildCommand.cs b/src/WixToolset.Core/CommandLine/BuildCommand.cs
index fed95958..065467bd 100644
--- a/src/WixToolset.Core/CommandLine/BuildCommand.cs
+++ b/src/WixToolset.Core/CommandLine/BuildCommand.cs
@@ -841,8 +841,7 @@ namespace WixToolset.Core.CommandLine
841 } 841 }
842 else 842 else
843 { 843 {
844 this.Messaging.Write(ErrorMessages.IllegalSuppressWarningId(paramArg)); 844 parser.ReportErrorArgument(parameter, ErrorMessages.IllegalSuppressWarningId(paramArg));
845 parser.ErrorArgument = parameter;
846 } 845 }
847 } 846 }
848 847
@@ -859,8 +858,7 @@ namespace WixToolset.Core.CommandLine
859 } 858 }
860 else 859 else
861 { 860 {
862 this.Messaging.Write(ErrorMessages.IllegalSuppressWarningId(paramArg)); 861 parser.ReportErrorArgument(parameter, ErrorMessages.IllegalSuppressWarningId(paramArg));
863 parser.ErrorArgument = parameter;
864 } 862 }
865 } 863 }
866 } 864 }