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
assets
backup
gitlab Merge branch 'api-empty-commit' into 'master' 2015-02-24 02:17:23 +00:00
redcarpet/render
support
tasks
disable_email_interceptor.rb
email_validator.rb
event_filter.rb
extracts_path.rb
file_size_validator.rb
gt_one_coercion.rb
repository_cache.rb
static_model.rb
unfold_form.rb