Determine which file an error occurs in