Added filename to file position type to print the filename in the
errors.