Print the configuration file and line number.
While at it, simplify configuration file parsing.

The fparseln(3) function already returns NULL on EOF. Check it and move
the ferror(3) call outside the loop.
Do not output the path twice.

It already gets printed by the error functions.