style(emqx_bridge): fix wording

This commit is contained in:
Stefan Strigler 2023-03-09 15:20:11 +01:00
parent 71ec77a2f2
commit dba95ec0fa
1 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@ schema("/bridges/:id") ->
204 => <<"Bridge deleted">>, 204 => <<"Bridge deleted">>,
400 => error_schema( 400 => error_schema(
'BAD_REQUEST', 'BAD_REQUEST',
"Can not delete bridge while active rules defined for this bridge" "Cannot delete bridge while active rules are defined for this bridge"
), ),
404 => error_schema('NOT_FOUND', "Bridge not found"), 404 => error_schema('NOT_FOUND', "Bridge not found"),
503 => error_schema('SERVICE_UNAVAILABLE', "Service unavailable") 503 => error_schema('SERVICE_UNAVAILABLE', "Service unavailable")
@ -533,7 +533,7 @@ schema("/bridges_probe") ->
204; 204;
{error, {rules_deps_on_this_bridge, RuleIds}} -> {error, {rules_deps_on_this_bridge, RuleIds}} ->
?BAD_REQUEST( ?BAD_REQUEST(
{<<"Can not delete bridge while active rules defined for this bridge">>, {<<"Cannot delete bridge while active rules are defined for this bridge">>,
RuleIds} RuleIds}
); );
{error, timeout} -> {error, timeout} ->