Skip to content

Commit

Permalink
better exception messages when the site fails to start
Browse files Browse the repository at this point in the history
  • Loading branch information
fschwiet committed Nov 8, 2013
1 parent 1c351a3 commit db8b897
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/KeyHub.Core/Kernel/KernelContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ private void RunKernelEvents(IEnumerable<IKernelEvent> kernelList)
var bootIssue = new GenericError
{
ErrorException = kernelEventException,
ErrorMessage = "",
ErrorMessage = kernelEventException.ToString(),
Severity = ErrorSeverity.Critical
};

loggingService.Fatal(bootIssue);

throw new KernelEventIncompleteException();
throw new KernelEventIncompleteException(kernelEventException);
}

// Check if the kernel event returned a value
Expand Down
4 changes: 4 additions & 0 deletions src/KeyHub.Core/Kernel/KernelEventIncompleteException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ public class KernelEventIncompleteException : Exception
{
public KernelEventIncompleteException()
: base("Some of the kernel events have failed! Check the log file for any specifics.") { }

public KernelEventIncompleteException(Exception inner)
: base("Some of the kernel events have failed! Check the log file for any specifics.", inner) { }

}
}

0 comments on commit db8b897

Please sign in to comment.