From 8cc9dcf8f04f8478a61e51eba0231b0f73fa8ed0 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Fri, 6 Mar 2020 18:17:13 -0800 Subject: [PATCH] Stop CommandException from printing a stack This was a bug due to copy-paste of CommandException. Now the cases where we intentionally fail will no longer have a call stack. --- src/Tye.Core/CommandException.cs | 2 +- src/tye/CommandException.cs | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 src/tye/CommandException.cs diff --git a/src/Tye.Core/CommandException.cs b/src/Tye.Core/CommandException.cs index ba792c97..8c37ea10 100644 --- a/src/Tye.Core/CommandException.cs +++ b/src/Tye.Core/CommandException.cs @@ -6,7 +6,7 @@ using System; namespace Tye { - internal class CommandException : Exception + public class CommandException : Exception { public CommandException(string message) : base(message) diff --git a/src/tye/CommandException.cs b/src/tye/CommandException.cs deleted file mode 100644 index a0d0fc5b..00000000 --- a/src/tye/CommandException.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System; - -namespace Tye -{ - internal class CommandException : Exception - { - public CommandException(string message) - : base(message) - { - } - - public CommandException(string message, Exception innerException) - : base(message, innerException) - { - } - } -}