aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2011-08-16 14:38:56 +0200
committerAlex Legler <alex@a3li.li>2011-08-16 14:38:56 +0200
commit88edad8c124f219430cd79af8a8ee74244379549 (patch)
treed43ff0602baaf5d081a3cd4b4e18aefa15068e1d
parentOnly autoload lib/, not lib/**/ (diff)
downloadglsamaker-88edad8c124f219430cd79af8a8ee74244379549.tar.gz
glsamaker-88edad8c124f219430cd79af8a8ee74244379549.tar.bz2
glsamaker-88edad8c124f219430cd79af8a8ee74244379549.zip
glsa_controller: Log revision creation errors
-rw-r--r--app/controllers/glsa_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/glsa_controller.rb b/app/controllers/glsa_controller.rb
index 3052591..f0f2f50 100644
--- a/app/controllers/glsa_controller.rb
+++ b/app/controllers/glsa_controller.rb
@@ -59,6 +59,7 @@ class GlsaController < ApplicationController
flash[:notice] = "Successfully created GLSA #{glsa.glsa_id}"
redirect_to :action => "requests"
rescue Exception => e
+ log_error e
flash.now[:error] = e.message
render :action => "new-request"
end