Improvement to 14ce129cfcd: Use try/except and pass filename on errors
Without the second part, the error message would be
abort: Is a directory
instead of
abort: Is a directory: /home/user/.cvspass
#!/bin/sh
echo '[Section]' >> $HGRCPATH
echo 'KeY = Case Sensitive' >> $HGRCPATH
echo 'key = lower case' >> $HGRCPATH
hg showconfig Section