disallow empty section names
fix the line numbering and use it in error messages