Skip to content

Handle snippet file path errors in services

Vijay Hawoldar requested to merge vij-snippet-create-update-errors into master

What does this MR do?

Refs #216273 (closed)

Now that we handle Gitaly path errors when creating/updating snippets, we should relay that error message to the user so that they may rectify the issue. Otherwise they'll be presented with a generic message and not know how to proceed.

This MR handles that by refactoring the create and update services.

As agreed with @mnichols1, I've also modified the copy to read Error [creating/updating] the snippet [- optional extra detail], as below:

Screenshot_2020-05-13_at_15.19.48

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports