FIX: Rescue and display import errors when updating theme via git

This commit is contained in:
David Taylor
2019-02-05 13:49:16 +00:00
parent d42139dfaa
commit 7b7bc3db39
2 changed files with 14 additions and 0 deletions

View File

@ -209,6 +209,8 @@ class Admin::ThemesController < Admin::AdminController
end
end
end
rescue RemoteTheme::ImportError => e
render_json_error e.message
end
def destroy