Renamed the "param" parameter to "err".