Mercurial > treepkg > treepkg
diff treepkg/readconfig.py @ 17:6ced445aa090
filename is not available for read config error message
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Mon, 12 Mar 2007 15:24:18 +0100 |
parents | 574506a022f6 |
children | 2802be410156 |
line wrap: on
line diff
--- a/treepkg/readconfig.py Fri Mar 09 19:39:13 2007 +0100 +++ b/treepkg/readconfig.py Mon Mar 12 15:24:18 2007 +0100 @@ -40,8 +40,8 @@ value = parser.get(section, key, vars=defaults) options[key] = converter(value) except NoOptionError: - print >>sys.stderr, "%s: Missing option %r in section %r" \ - % (filename, key, section) + print >>sys.stderr, "Missing option %r in section %r" \ + % (key, section) sys.exit(1) return options