JustinAzoff / netflow-indexer

A program that uses xapian to index the flat file databases used by nfdump or flow-tools
http://justinazoff.github.com/netflow-indexer/
36 stars 4 forks source link

Missing config file does not display clear error #4

Closed DeepMac closed 11 years ago

DeepMac commented 11 years ago

If the config file specified in a netflow-indexer command doesn't exist, you will not get a clear error message stating that is the issue, which may result in silent failures.

The following patch to netflowindexer/config.py resolves the issue:

@@ -1,10 +1,18 @@ import ConfigParser import datetime +import os.path

from netflowindexer.util import str_to_regex import re

def read_config(fn):