Merge pull request #2227 from alphagov/fix-error-msg

Remove the extra "to" in the message.
This commit is contained in:
Rebecca Law
2018-11-13 14:35:20 +00:00
committed by GitHub
4 changed files with 13 additions and 11 deletions

View File

@@ -141,7 +141,7 @@ def move_to_template_folder(service_id, target_template_folder_id=None):
def _validate_folder_move(target_template_folder, target_template_folder_id, template_folder, template_folder_id):
if str(target_template_folder_id) == str(template_folder_id):
msg = 'Could not move to folder to itself'
msg = 'Could not move folder to itself'
raise InvalidRequest(msg, status_code=400)
if target_template_folder and template_folder.is_parent_of(target_template_folder):
msg = 'Could not move to folder: {} is an ancestor of target folder {}'.format(