From ea30368b73c1cc3d3535097e90b2844a360d594c Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 5 Jul 2013 11:16:00 +0200 Subject: [PATCH] Fix issue when displaying internationalized errors --- .../webapp/WEB-INF/app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb index 42bff2114eb..bdf1e5196ff 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb @@ -170,7 +170,7 @@ class ApplicationController < ActionController::Base end def render_server_exception(exception) - message = (exception.getMessage ? exception.getMessage : Api::Utils.message(exception.l10nKey, :params => exception.l10nParams)) + message = (exception.getMessage ? exception.getMessage : Api::Utils.message(exception.l10nKey, :params => exception.l10nParams.to_a)) render :text => message, :status => exception.httpCode end -- 2.39.5