make assert message more standard

This commit is contained in:
John Jones 2019-01-15 12:19:00 -05:00
parent f7e5f7396b
commit 9ba95190c4

View file

@ -631,7 +631,7 @@ namespace fc
to_stream(os, v.get_object(), format, max_depth - 1 );
return;
default:
FC_THROW_EXCEPTION( fc::invalid_arg_exception, "Unsupported variant type: " + std::to_string(v.get_type()) );
FC_THROW_EXCEPTION( fc::invalid_arg_exception, "Unsupported variant type: ${type}", ( "type", v.get_type() ) );
}
}