Skip to content

Commit

Permalink
(GH-1145) show inner exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed May 1, 2017
1 parent a0f1a14 commit 4017e98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ private static void set_licensed_options(ChocolateyConfiguration config, Chocola

if (isDebug && ex.InnerException != null)
{
message += "{0}{1}".format_with(Environment.NewLine, ex.ToString());
message += "{0}{1}".format_with(Environment.NewLine, ex.InnerException.ToString());
}

"chocolatey".Log().Error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private static void set_licensed_environment(ChocolateyConfiguration config)

if (isDebug && ex.InnerException != null)
{
message += "{0}{1}".format_with(Environment.NewLine, ex.ToString());
message += "{0}{1}".format_with(Environment.NewLine, ex.InnerException.ToString());
}

"chocolatey".Log().Error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private static void load_component_registry(Type componentRegistry, Container co

if (isDebug && ex.InnerException != null)
{
message += "{0}{1}".format_with(Environment.NewLine, ex.ToString());
message += "{0}{1}".format_with(Environment.NewLine, ex.InnerException.ToString());
}

"chocolatey".Log().Error(
Expand Down

0 comments on commit 4017e98

Please sign in to comment.