Skip to content

Commit

Permalink
Fix: correct feedback when trying to delete internal exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
kickster97 committed Dec 18, 2023
1 parent 8c1d8e2 commit 5082989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lavinmq/http/controller/exchanges.cr
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module LavinMQ
bad_request(context, "Exchange #{e.name} in vhost #{e.vhost.name} in use") if e.in_use?
end
if e.internal?
bad_request(context, "Not allowed to delete internal queue")
bad_request(context, "Not allowed to delete internal exchange")
end
@amqp_server.vhosts[vhost].delete_exchange(e.name)
context.response.status_code = 204
Expand Down

0 comments on commit 5082989

Please sign in to comment.