From: Jan Provaznik <jprovazn(a)redhat.com>
If partial launch (with errors) is allowed, the errors should be displayed
---
src/app/controllers/deployments_controller.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/app/controllers/deployments_controller.rb
b/src/app/controllers/deployments_controller.rb
index 5447377..86b27a4 100644
--- a/src/app/controllers/deployments_controller.rb
+++ b/src/app/controllers/deployments_controller.rb
@@ -154,6 +154,7 @@ class DeploymentsController < ApplicationController
if @deployment.create_and_launch(current_session, current_user)
format.html do
flash[:notice] = t "deployments.flash.notice.launched"
+ flash[:error] = @deployment.errors.full_messages
redirect_to deployment_path(@deployment)
end
format.js { render :partial => 'properties' }
--
1.7.7.6