mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#18275: Fixing universal Transaction scope exception
Work Item: 18275 --HG-- branch : 1.x
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
<div>
|
@*
|
||||||
|
ErrorPage(string Message, Exception Exception)
|
||||||
|
*@
|
||||||
|
|
||||||
|
<div>
|
||||||
<h1 id="page-title">@Html.TitleForPage(T("Oops. Something went wrong ... sorry"))</h1>
|
<h1 id="page-title">@Html.TitleForPage(T("Oops. Something went wrong ... sorry"))</h1>
|
||||||
<div>
|
<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>
|
||||||
|
|||||||
@@ -44,7 +44,12 @@ namespace Orchard.Data {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Logger.Debug("Final work for transaction being performed");
|
Logger.Debug("Final work for transaction being performed");
|
||||||
|
try {
|
||||||
_scope.Dispose();
|
_scope.Dispose();
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
// swallowing the exception
|
||||||
|
}
|
||||||
Logger.Debug("Transaction disposed");
|
Logger.Debug("Transaction disposed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user