diff options
author | Go MAEDA <maeda@farend.jp> | 2019-05-16 00:17:47 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-05-16 00:17:47 +0000 |
commit | 26171fc5f7affdd99e4f9157504fa9d8fd0d7a87 (patch) | |
tree | 2dbb2c85b0caee1852be2ae52af407df2c43ea41 /app | |
parent | 8eb5f2c6059cf4b707e616d8e5b9b9e6ce191172 (diff) | |
download | redmine-26171fc5f7affdd99e4f9157504fa9d8fd0d7a87.tar.gz redmine-26171fc5f7affdd99e4f9157504fa9d8fd0d7a87.zip |
Include a reason in the error message when an issue status cannot be deleted (#31361).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18168 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/issue_statuses_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/issue_statuses_controller.rb b/app/controllers/issue_statuses_controller.rb index 2abc2a5c3..2bc6e43de 100644 --- a/app/controllers/issue_statuses_controller.rb +++ b/app/controllers/issue_statuses_controller.rb @@ -74,8 +74,8 @@ class IssueStatusesController < ApplicationController def destroy IssueStatus.find(params[:id]).destroy redirect_to issue_statuses_path - rescue - flash[:error] = l(:error_unable_delete_issue_status) + rescue Exception => e + flash[:error] = l(:error_unable_delete_issue_status, ERB::Util.h(e.message)) redirect_to issue_statuses_path end |