Skip to content

Commit

Permalink
Pass the inner exception when catching an exception while creating a …
Browse files Browse the repository at this point in the history
…new service (for debugging)
  • Loading branch information
patrickrobbins committed May 4, 2015
1 parent bdfa93a commit c3e4599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDammann.WebApi.Versioning/Internal/ServicesExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ private static TService GetServiceOrThrow<TService>(this IDependencyResolver ser
try {
service = Activator.CreateInstance(clrType) as TService;
}
catch (Exception) {
catch (Exception ex) {
throw new InvalidOperationException(
String.Format(ExceptionResources.DependencyContainerNotConfigured, clrType.FullName));
String.Format(ExceptionResources.DependencyContainerNotConfigured, clrType.FullName), ex);
}
}

Expand Down

0 comments on commit c3e4599

Please sign in to comment.