Lines Matching refs:err

80                                            std::string* err) {  in ParseTargetInfoAndSourceInfo()  argument
94 *err = "invalid number of args"; in ParseTargetInfoAndSourceInfo()
101 *err = "invalid target ranges"; in ParseTargetInfoAndSourceInfo()
110 *err = "invalid src_block_count \""s + token + "\""; in ParseTargetInfoAndSourceInfo()
123 *err = "invalid source ranges"; in ParseTargetInfoAndSourceInfo()
132 *err = in ParseTargetInfoAndSourceInfo()
144 *err = "invalid source ranges location"; in ParseTargetInfoAndSourceInfo()
156 *err = "invalid stash info"; in ParseTargetInfoAndSourceInfo()
161 *err = "invalid stash location"; in ParseTargetInfoAndSourceInfo()
169 *err = android::base::StringPrintf("mismatching block count: %zu (%s) vs %zu", result.blocks(), in ParseTargetInfoAndSourceInfo()
178 Command Command::Parse(const std::string& line, size_t index, std::string* err) { in Parse() argument
184 *err = "invalid type"; in Parse()
196 *err = android::base::StringPrintf("invalid number of args: %zu (expected 1)", in Parse()
209 *err = android::base::StringPrintf("invalid number of args: %zu (expected 2)", in Parse()
216 *err = "invalid token"; in Parse()
223 *err = android::base::StringPrintf("invalid number of args: %zu (expected 1)", in Parse()
231 *err = "missing hash"; in Parse()
237 hash, &source_info, err)) { in Parse()
243 *err = android::base::StringPrintf("invalid number of args: %zu (expected 4+)", in Parse()
251 *err = "invalid patch offset/length"; in Parse()
260 src_hash, &source_info, err)) { in Parse()
266 *err = android::base::StringPrintf("invalid number of args: %zu (expected 0)", in Parse()
273 *err = android::base::StringPrintf("invalid number of args: %zu (expected 5)", in Parse()
281 *err = "invalid hash tree ranges in: " + line; in Parse()
287 *err = "invalid source ranges in: " + line; in Parse()
295 *err = "invalid hash tree arguments in " + line; in Parse()
304 *err = "invalid op"; in Parse()
404 TransferList TransferList::Parse(const std::string& transfer_list_str, std::string* err) { in Parse() argument
409 *err = android::base::StringPrintf("too few lines in the transfer list [%zu]", lines.size()); in Parse()
415 *err = "unexpected transfer list version ["s + lines[0] + "]"; in Parse()
421 *err = "unexpected block count ["s + lines[1] + "]"; in Parse()
432 *err = "unexpected maximum stash blocks ["s + lines[3] + "]"; in Parse()
445 *err = android::base::StringPrintf("Failed to parse command %zu [%s]: %s", cmdindex, in Parse()