gitlab-org--gitlab-foss/lib
Dmitriy Zaporozhets c87c1cb3b9 Merge branch 'api-empty-commit' into 'master'
Improve error messages when file editing fails

Give more specific errors in API responses and web UI flash messages when a file update fails.  See #1479.

Instead of returning false from `Gitlab::Satellite::Files::EditFileAction#commit!` when a `Grit::Git::CommandFailed` error is raised, now `#commit!` raises a different error depending on whether the failure happened during checkout, commit, or push.

@dzaporozhets Please let me know if you want to change the HTTP status codes or the error messages in `Files::UpdateService`

cc @sytse

See merge request !1569
2015-02-24 02:17:23 +00:00
..
api Improve error messages when file editing fails 2015-02-22 16:01:49 -07:00
assets
backup Revert "Fix broken access control and refactor avatar upload" 2015-02-19 08:57:35 -08:00
gitlab Merge branch 'api-empty-commit' into 'master' 2015-02-24 02:17:23 +00:00
redcarpet/render Replace highlight.js with rouge-fork rugments 2015-01-15 13:41:11 +01:00
support Merge branch 'go-get-workaround-nginx' of https://github.com/mattes/gitlabhq into mattes-go-get-workaround-nginx 2015-02-20 15:47:34 -08:00
tasks Dont load rubocop in prod env 2015-02-03 19:25:57 -08:00
disable_email_interceptor.rb Add email interceptor to prevent mail sending if email sending is disabled. 2014-10-27 13:05:50 +01:00
email_validator.rb More rubocop rules enable 2015-02-02 21:31:03 -08:00
event_filter.rb Add parenthesis to function def with arguments. 2014-10-03 09:18:46 +02:00
extracts_path.rb Upgrade to Rails 4.1.9 2015-02-14 11:09:23 -07:00
file_size_validator.rb
gt_one_coercion.rb diff unfold 2014-08-14 15:48:14 +04:00
repository_cache.rb Fix RepositoryCache backend attr_reader 2015-01-30 10:17:55 -05:00
static_model.rb
unfold_form.rb diff unfold 2014-08-14 15:48:14 +04:00