show the find output if there is an error. (trunk r7871)
svn path=/main/branches/2.1.2/; revision=7872
a = commands.getstatusoutput(mycommand + \
" ! -iname '.*~' ! -iname '.*.bak' -print0")
if a[0] != 0:
- print >> sys.stderr, " " + bad("*")+ " error scanning '%s'" % x
+ print >> sys.stderr, " " + bad("*")+ \
+ " error scanning '%s': %s" % (x, a[1])
else:
files = a[1].split('\0')
# split always produces an empty string as the last element