From 63e2c3475ff5c5ac6acc04bc1b9a4e56f556971f Mon Sep 17 00:00:00 2001 From: Renaud Paquay Date: Sat, 30 Apr 2011 19:47:29 -0700 Subject: [PATCH] Don't lose exception callstack if error during startup --HG-- branch : 1.x extra : transplant_source : %B6%B7%FDp%C1%16G%D4%16%9E%F7%85%99%E50%B9%F8%0C%CC%D1 --- src/Orchard.Startup/Starter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Startup/Starter.cs b/src/Orchard.Startup/Starter.cs index 6394e3459..2527a4051 100644 --- a/src/Orchard.Startup/Starter.cs +++ b/src/Orchard.Startup/Starter.cs @@ -17,7 +17,7 @@ namespace Orchard.WarmupStarter { // so we need to simulate a "restart". var error = _error; LaunchStartupThread(registrations); - throw error; + throw new ApplicationException("Error during Orchard startup", error); } // Only notify if the host has started up