@@ -52,12 +52,12 @@ delete_shovel(VHost, Name, ActingUser) ->
5252 rabbit_log :info (" Will delete runtime parameters of shovel '~ts ' in virtual host '~ts '" , [Name , VHost ]),
5353 ok = rabbit_runtime_parameters :clear (VHost , <<" shovel" >>, Name , ActingUser );
5454 true ->
55- report_connot_delete_protected_shovel (Name , VHost , ShovelParameters )
55+ report_that_protected_shovel_cannot_be_deleted (Name , VHost , ShovelParameters )
5656 end
5757 end .
5858
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 ) ->
6161 case rabbit_shovel_parameters :internal_owner (ShovelParameters ) of
6262 undefined ->
6363 rabbit_misc :protocol_error (
@@ -68,7 +68,7 @@ report_connot_delete_protected_shovel(Name, VHost, ShovelParameters) ->
6868 rabbit_misc :protocol_error (
6969 resource_locked ,
7070 " 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 " ,
7272 [Name , VHost , rabbit_misc :rs (IOwner )])
7373 end .
7474
0 commit comments