Fixing middleware (was capturing errors incorrectly before)
Merge branch 'add_gem_boilerplate' into fix_middleware
Merge pull request #2 from 11mdlow/fix_middleware

Fix middleware