e is undefined, use err instead

also removed unused `_req` variable