#18275: Fixing universal Transaction scope exception

Work Item: 18275

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-12-28 11:47:34 -08:00
parent 77b5c7d092
commit 8dbf385652
2 changed files with 12 additions and 3 deletions

View File

@@ -1,6 +1,10 @@
<div>
@*
ErrorPage(string Message, Exception Exception)
*@
<div>
<h1 id="page-title">@Html.TitleForPage(T("Oops. Something went wrong ... sorry"))</h1>
<div>
<p>@T("An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back").Text</p>
<p>@T("An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back").Text</p>
</div>
</div>

View File

@@ -44,7 +44,12 @@ namespace Orchard.Data {
}
Logger.Debug("Final work for transaction being performed");
_scope.Dispose();
try {
_scope.Dispose();
}
catch {
// swallowing the exception
}
Logger.Debug("Transaction disposed");
}
}