1089@@ -1081,7 +1090,10 @@ std::unique_ptr<DescriptorImpl> ParseScript(uint32_t& key_exp_index, Span<const
1090 }
1091 auto arg = Expr(expr);
1092 auto pk = ParsePubkey(key_exp_index, arg, ctx, out, error);
1093- if (!pk) return nullptr;
1094+ if (!pk) {
1095+ error = strprintf("Multi: %s", error);
I don’t understand why this can’t (or shouldn’t) be more specific?
I think it’s just that it would result in a fairly large if
block to get the right function name when Multi:
is sufficient to get the point across. There can only be one multi in a descriptor anyways, so it should be obvious where the error is.
0 error = strprintf("%smulti: %s", sorted_multi ? "sorted" : "", error);
?