Fix typo in error var name

`e` → `err`