summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-05-19 19:50:38 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2011-05-19 19:50:38 +0100
commitc64d6655d5fa1780d464c58d0177805fe37b264a (patch)
treefc302ed099b48d10bd7b6cf15999b487031f661d /docs
parent909e5c85a1eccd8c9f0e0de534fc1f92573fc3f4 (diff)
downloadrabbitmq-server-git-c64d6655d5fa1780d464c58d0177805fe37b264a.tar.gz
fix error handling and construct xname on init rather than every message
I have no idea why that 'catch' was there. There is nothing to go wrong during publish except the exchange may not be found. Which the 'catch' wasn't catching since that is just an ordinary {error, not_found} return. Cue explosion. So now we handle that and print a nice error message. Also, there is no point constructing the exchange name for every message; doing that once, on init, is enough. That has the further advantage that now the implementation matches the spec (rabbit_exchange:name() is a qualified name, not a binary).
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions