From: Eric S. Raymond Date: Wed, 3 Sep 2003 16:30:05 +0000 (+0000) Subject: Better error handling. X-Git-Tag: 1.0~32 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=df740bea2c1fdd280ee8f2b5242b4b95de9d9bf7;p=comparator.git Better error handling. --- diff --git a/filterator b/filterator index 08aac3d..3654420 100755 --- a/filterator +++ b/filterator @@ -98,5 +98,6 @@ if __name__ == '__main__': locations = [] break except IOError: - pass + sys.stderr.write("filterator: can't open %s\n" % file) + sys.exit(0) print "%d overlaps." % count