mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
move key so it does not interfere with other errors
This commit is contained in:
@ -80,7 +80,7 @@ class Admin::ThemesController < Admin::AdminController
|
||||
@theme = RemoteTheme.import_theme(params[:remote], current_user, private_key: params[:private_key])
|
||||
render json: @theme, status: :created
|
||||
rescue RuntimeError
|
||||
render_json_error I18n.t('errors.theme.other')
|
||||
render_json_error I18n.t('themes.error_importing')
|
||||
end
|
||||
else
|
||||
render json: @theme.errors, status: :unprocessable_entity
|
||||
|
Reference in New Issue
Block a user