mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 03:17:32 +08:00
Fixing warning messages
--HG-- branch : 1.x
This commit is contained in:
@@ -147,7 +147,7 @@ namespace Orchard.Tests.ContentManagement {
|
|||||||
|
|
||||||
_transaction.Dispose();
|
_transaction.Dispose();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch {
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
_transaction = null;
|
_transaction = null;
|
||||||
|
|||||||
@@ -230,8 +230,6 @@ namespace Orchard.Tests.DataMigration {
|
|||||||
|
|
||||||
public int UpdateFrom1() {
|
public int UpdateFrom1() {
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
|
|
||||||
return 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int UpdateFrom2() {
|
public int UpdateFrom2() {
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ namespace Orchard.MediaLibrary.Controllers {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch {
|
||||||
return View(viewModel);
|
return View(viewModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ namespace Orchard.Data.Migration {
|
|||||||
|
|
||||||
_transactionManager.RequireNew();
|
_transactionManager.RequireNew();
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch {
|
||||||
_transactionManager.Cancel();
|
_transactionManager.Cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user