A platform for community discussion. Free, open, simple.
move key so it does not interfere with other errors
Sam7c0e6b820e2c
diff --git a/app/controllers/admin/themes_controller.rb b/app/controllers/admin/themes_controller.rbindex 5d76f9f97b8..df533989c5c 100644--- a/app/controllers/admin/themes_controller.rb+++ b/app/controllers/admin/themes_controller.rb@@ -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: :createdrescue RuntimeError- render_json_error I18n.t('errors.theme.other')+ render_json_error I18n.t('themes.error_importing')endelserender json: @theme.errors, status: :unprocessable_entitydiff --git a/config/locales/server.en.yml b/config/locales/server.en.ymlindex 6056f19a12b..6a7c1345f75 100644--- a/config/locales/server.en.yml+++ b/config/locales/server.en.yml@@ -59,6 +59,7 @@ en:themes:bad_color_scheme: "Can not update theme, invalid color scheme"other_error: "Something went wrong updating theme"+ error_importing: "Error cloning git repository, access is denied or repository is not found"settings_errors:invalid_yaml: "Provided YAML is invalid."data_type_not_a_number: "Setting `%{name}` type is unsupported. Supported types are `integer`, `bool`, `list` and `enum`"@@ -151,8 +152,6 @@ en:other: ! '%{count} errors prohibited this %{model} from being saved'embed:load_from_remote: "There was an error loading that post."- theme:- other: "Error cloning git repository, access is denied or repository is not found"site_settings:min_username_length_exists: "You cannot set the minimum username length above the shortest username."min_username_length_range: "You cannot set the minimum above the maximum."