Merge remote branch 'origin/fastpath'

* origin/fastpath:
  Raise internal error when failing to read contents of state file with -x option

I've changed this to use error() instead of internal_error(). The
latter should only be used for logic errors that indicate a bug in
Bro. In this case, the message flags a problem that's more likely to
be external.
This commit is contained in:
Robin Sommer 2011-06-25 16:42:52 -07:00
commit 85f7d2e809

View file

@ -888,7 +888,8 @@ int main(int argc, char** argv)
UnserialInfo info(&s); UnserialInfo info(&s);
info.print = stdout; info.print = stdout;
info.install_uniques = true; info.install_uniques = true;
s.Read(&info, bst_file); if ( ! s.Read(&info, bst_file) )
error("Failed to read events from %s\n", bst_file);
} }
exit(0); exit(0);