message: Add translator for unexpected exception when running test
diff: #include <iostream>
  #include <boost/test/included/unit_test.hpp>
  #include <fc/log/logger.hpp>
  -//extern uint32_t EOS_TESTING_GENESIS_TIMESTAMP;
  +#include <eosio/chain/exceptions.hpp>
  +//extern uint32_t EOS_TESTING_GENESIS_TIMESTAMP;
  +void translate_fc_exception(const fc::exception &e) {
  + std::cerr << "\033[33m" << e.to_detail_string() << "\033[0m" << std::endl;
  + BOOST_TEST_FAIL("Caught Unexpected Exception");
  +}
  boost::unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) {
  // Turn off blockchain logging if no --verbose parameter is not added
  - // To have verbose enabled, call "tests/chain_test --report_level=detailed -- --verbose"
  + // To have verbose enabled, call "tests/chain_test -- --verbose"
  bool is_verbose = false;
  std::string verbose_arg = "--verbose";
  for (int i = 0; i < argc; i++) {
  @@ -23,6 +28,9 @@ boost::unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) {
  }
  if(!is_verbose) fc::logger::get(DEFAULT_LOGGER).set_log_level(fc::log_level::off);
  + // Register fc::exception translator
  + boost::unit_test::unit_test_monitor.register_exception_translator<fc::exception>(&translate_fc_exception);
  +
  std::srand(time(NULL));
  std::cout << "Random number generator seeded to " << time(NULL) << std::endl;
  /*
  