Development-only error handler middleware