generate-config: line numbers in error messages