# Latex errors when compiling

I have a general question on reading latex errors. (I am not a very experienced latex user.) I guess I have two questions:

When I compile a file with latex, it writes a lot of junk to my terminal. Is there a way to reduce the amount of junk? (I can look in the log file if I want to see more specific things).

When I get an error message, Latex writes the line number where the error occurs. But, does Latex also tell me in what file the error occurs? (I am using a template of somebody which includes a lot of files, and has some error somewhere. The only thing I know now is that it occurs on line 765 of a certain file, but I dont know which file ....)

-
What TeX distribution are you using? You should mention also the operating system and the editor you're employing to manage LaTeX files. –  egreg Jul 30 '12 at 14:05
Perhaps the -file-line-error option will help. –  Peter Grill Jul 30 '12 at 17:33