diff options
Diffstat (limited to 'app/controllers/nodes_controller.rb')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index 538e2f6..e442bd2 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -49,8 +49,8 @@ class NodesController < ApplicationController | |||
| 49 | def edit | 49 | def edit |
| 50 | begin | 50 | begin |
| 51 | @draft = @node.find_or_create_draft( current_user ) | 51 | @draft = @node.find_or_create_draft( current_user ) |
| 52 | rescue LockedByAnotherUser | 52 | rescue LockedByAnotherUser => e |
| 53 | flash[:error] = "Page is locked by another user who is working on it!" | 53 | flash[:error] = e.message |
| 54 | redirect_to :back | 54 | redirect_to :back |
| 55 | end | 55 | end |
| 56 | end | 56 | end |
