Add ability to cause assertions on bad errors.  Added docs.