Properly funnel errors through Express.js's middleware