config: report errors at the EOL with correct line number