Skip to content

Commit

Permalink
Added output messages for transaction-commit and transaction-rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jan 27, 2014
1 parent e2d27de commit 10e0237
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Result execute(UIExecutionContext shellContext) throws Exception
return Results.fail("Resource Transaction is not started");
}
transaction.commit();
return Results.success();
return Results.success("Resource Transaction was committed");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Result execute(UIExecutionContext shellContext) throws Exception
return Results.fail("Resource Transaction is not started");
}
transaction.rollback();
return Results.success();
return Results.success("Resource Transaction was rolled back");
}

}

0 comments on commit 10e0237

Please sign in to comment.