@@ -141,14 +141,13 @@ void DoCheck(const std::string& prv, const std::string& pub, const std::string&
141
141
} else {
142
142
parse_priv = Parse (prv, keys_priv, error);
143
143
}
144
+ BOOST_CHECK_MESSAGE (parse_priv, error);
144
145
if (replace_apostrophe_with_h_in_pub) {
145
146
parse_pub = Parse (UseHInsteadOfApostrophe (pub), keys_pub, error);
146
147
} else {
147
148
parse_pub = Parse (pub, keys_pub, error);
148
149
}
149
-
150
- BOOST_CHECK (parse_priv);
151
- BOOST_CHECK (parse_pub);
150
+ BOOST_CHECK_MESSAGE (parse_pub, error);
152
151
153
152
// Check that the correct OutputType is inferred
154
153
BOOST_CHECK (parse_priv->GetOutputType () == type);
@@ -161,8 +160,8 @@ void DoCheck(const std::string& prv, const std::string& pub, const std::string&
161
160
// Check that both versions serialize back to the public version.
162
161
std::string pub1 = parse_priv->ToString ();
163
162
std::string pub2 = parse_pub->ToString ();
164
- BOOST_CHECK (EqualDescriptor (pub, pub1));
165
- BOOST_CHECK (EqualDescriptor (pub, pub2));
163
+ BOOST_CHECK_MESSAGE (EqualDescriptor (pub, pub1), " Private ser: " + pub1 + " Public desc: " + pub );
164
+ BOOST_CHECK_MESSAGE (EqualDescriptor (pub, pub2), " Public ser: " + pub2 + " Public desc: " + pub );
166
165
167
166
// Check that both can be serialized with private key back to the private version, but not without private key.
168
167
if (!(flags & MISSING_PRIVKEYS)) {
0 commit comments