Remove try catches choking all exceptions (#5206)
* remove some try catches choking all exceptions * rename ExceptionExtension to ReportAsWarning, show full stack instead of just message * dotnet-migrate try catch clean-up * fix migration test failures
This commit is contained in:
parent
a442449c55
commit
5fea7c3ae6
18 changed files with 212 additions and 71 deletions
|
@ -82,22 +82,6 @@ namespace Microsoft.DotNet.Cli
|
|||
|
||||
return 1;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
#if DEBUG
|
||||
Reporter.Error.WriteLine(ex.ToString());
|
||||
#else
|
||||
if (Reporter.IsVerbose)
|
||||
{
|
||||
Reporter.Error.WriteLine(ex.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
Reporter.Error.WriteLine(ex.Message);
|
||||
}
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (PerfTrace.Enabled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue