From 9ba95190c4299ec69655406c048fd8795787adfa Mon Sep 17 00:00:00 2001 From: John Jones Date: Tue, 15 Jan 2019 12:19:00 -0500 Subject: [PATCH] make assert message more standard --- src/io/json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/json.cpp b/src/io/json.cpp index 666af76..712973c 100644 --- a/src/io/json.cpp +++ b/src/io/json.cpp @@ -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() ) ); } }