Use err instead of fileErr