Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#50543] fixed error text on storage error

Eric Schubertc9d535a78a4c
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb
index d3da0317ff3..f6564b5d1b0 100644
--- a/app/controllers/my_controller.rb
+++ b/app/controllers/my_controller.rb
@@ -92,9 +92,9 @@ class MyController < ApplicationController
.where(user: @user, oauth_client: { integration_type: 'Storages::Storage' }).find_by(id: params[:id])
if token&.destroy
- flash[:info] = I18n.t('my.access_tokens.storages.removed')
+ flash[:info] = I18n.t('my_account.access_tokens.storages.removed')
else
- flash[:error] = I18n.t('my.access_tokens.storages.failed')
+ flash[:error] = I18n.t('my_account.access_tokens.storages.failed')
end
redirect_to action: :access_token
end
diff --git a/modules/storages/app/common/storages/peripherals/storage_error_helper.rb b/modules/storages/app/common/storages/peripherals/storage_error_helper.rb
index 541cb4e7bb4..2714db631a1 100644
--- a/modules/storages/app/common/storages/peripherals/storage_error_helper.rb
+++ b/modules/storages/app/common/storages/peripherals/storage_error_helper.rb
@@ -39,7 +39,7 @@ module Storages::Peripherals
when :forbidden
raise API::Errors::OutboundRequestForbidden.new
else
- raise API::Errors::InternalError.new
+ raise API::Errors::InternalError.new(error.log_message)
end
end
end