@@ -52,12 +52,12 @@ delete_shovel(VHost, Name, ActingUser) ->
52
52
rabbit_log :info (" Will delete runtime parameters of shovel '~ts ' in virtual host '~ts '" , [Name , VHost ]),
53
53
ok = rabbit_runtime_parameters :clear (VHost , <<" shovel" >>, Name , ActingUser );
54
54
true ->
55
- report_connot_delete_protected_shovel (Name , VHost , ShovelParameters )
55
+ report_that_protected_shovel_cannot_be_deleted (Name , VHost , ShovelParameters )
56
56
end
57
57
end .
58
58
59
- -spec report_connot_delete_protected_shovel (binary (), binary (), map () | [tuple ()]) -> no_return ().
60
- report_connot_delete_protected_shovel (Name , VHost , ShovelParameters ) ->
59
+ -spec report_that_protected_shovel_cannot_be_deleted (binary (), binary (), map () | [tuple ()]) -> no_return ().
60
+ report_that_protected_shovel_cannot_be_deleted (Name , VHost , ShovelParameters ) ->
61
61
case rabbit_shovel_parameters :internal_owner (ShovelParameters ) of
62
62
undefined ->
63
63
rabbit_misc :protocol_error (
@@ -68,7 +68,7 @@ report_connot_delete_protected_shovel(Name, VHost, ShovelParameters) ->
68
68
rabbit_misc :protocol_error (
69
69
resource_locked ,
70
70
" Cannot delete protected shovel '~ts ' in virtual host '~ts '. It was "
71
- " declared as an protected and can be deleted only by deleting the owner entity: ~ts " ,
71
+ " declared as protected, delete it with --force or delete its owner entity instead : ~ts " ,
72
72
[Name , VHost , rabbit_misc :rs (IOwner )])
73
73
end .
74
74
0 commit comments