Corrected undefined err object.

This `err` object is not defined.