puppetlabs/puppetdb — pull request #292 by cprice-puppet (2012-09-24 03:22:31+00:00)
Title: DRY up http error handling

We had the same lengthy try/catch block for error handling
in several of our http endpoints; this commit introduces a
macro to perform that error handling so that we're not
repeating the code in so many spots.