Naming table: handle insertion failures
Summary:
When we fail, we should return collision errors for names we were trying to insert to make investigating easier.
This diff adds:
- catching exceptions from SQLite and returning results for each name that fails to be inserted
- printing all the errors when save finishes
- removing the output file and raising a failure if there are insertion errors in paths that are presumed to be used to generate saved states
`hh_naming_table_builder` isn't used in production currently, so I'm not deleting the saved state file but returning a failure exit code nontheless
Reviewed By: arxanas
Differential Revision:
D21080712
fbshipit-source-id:
96fc923b7cdf8c0821eb6baa2bac0d987ad68b85