Raise internal error when failing to read contents of state file with -x option

Instead of just exiting w/ code 0
This commit is contained in:
Jon Siwek 2011-06-22 14:43:23 -05:00
parent ff7b92ffc8
commit 143427e35e

View file

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