mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
add verbosity to local_path error
This commit is contained in:
@@ -1345,7 +1345,7 @@ class ProjectOptionsSerializer(BaseSerializer):
|
|||||||
if scm_type:
|
if scm_type:
|
||||||
attrs.pop('local_path', None)
|
attrs.pop('local_path', None)
|
||||||
if 'local_path' in attrs and attrs['local_path'] not in valid_local_paths:
|
if 'local_path' in attrs and attrs['local_path'] not in valid_local_paths:
|
||||||
errors['local_path'] = 'Invalid path choice.'
|
errors['local_path'] = _('This path is already being used by another manual project.')
|
||||||
|
|
||||||
if errors:
|
if errors:
|
||||||
raise serializers.ValidationError(errors)
|
raise serializers.ValidationError(errors)
|
||||||
|
|||||||
Reference in New Issue
Block a user