From 22e85c2f77a9fb32be181d28cc23d1b22226e311 Mon Sep 17 00:00:00 2001 From: Krzysztof Wicher Date: Thu, 12 Jan 2017 16:08:54 -0800 Subject: [PATCH] fix stack trace for unhandled exceptions in dotnet-migrate --- src/dotnet/commands/dotnet-migrate/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dotnet/commands/dotnet-migrate/Program.cs b/src/dotnet/commands/dotnet-migrate/Program.cs index 469b29b50..177fb920f 100644 --- a/src/dotnet/commands/dotnet-migrate/Program.cs +++ b/src/dotnet/commands/dotnet-migrate/Program.cs @@ -84,10 +84,10 @@ namespace Microsoft.DotNet.Tools.Migrate Reporter.Error.WriteLine(LocalizableStrings.MigrationFailedError); return 1; } - catch (Exception e) + catch (Exception) { Reporter.Error.WriteLine(LocalizableStrings.MigrationFailedError); - throw e; + throw; } } }