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()
133 *err = in ParseTargetInfoAndSourceInfo()
145 *err = "invalid source ranges location"; in ParseTargetInfoAndSourceInfo()
157 *err = "invalid stash info"; in ParseTargetInfoAndSourceInfo()
162 *err = "invalid stash location"; in ParseTargetInfoAndSourceInfo()
170 *err = android::base::StringPrintf("mismatching block count: %zu (%s) vs %zu", result.blocks(), in ParseTargetInfoAndSourceInfo()
179 Command Command::Parse(const std::string& line, size_t index, std::string* err) { in Parse() argument
185 *err = "invalid type"; in Parse()
197 *err = android::base::StringPrintf("invalid number of args: %zu (expected 1)", in Parse()
210 *err = android::base::StringPrintf("invalid number of args: %zu (expected 2)", in Parse()
217 *err = "invalid token"; in Parse()
224 *err = android::base::StringPrintf("invalid number of args: %zu (expected 1)", in Parse()
232 *err = "missing hash"; in Parse()
238 hash, &source_info, err)) { in Parse()
244 *err = android::base::StringPrintf("invalid number of args: %zu (expected 4+)", in Parse()
252 *err = "invalid patch offset/length"; in Parse()
261 src_hash, &source_info, err)) { in Parse()
267 *err = android::base::StringPrintf("invalid number of args: %zu (expected 0)", in Parse()
274 *err = android::base::StringPrintf("invalid number of args: %zu (expected 5)", in Parse()
282 *err = "invalid hash tree ranges in: " + line; in Parse()
288 *err = "invalid source ranges in: " + line; in Parse()
296 *err = "invalid hash tree arguments in " + line; in Parse()
305 *err = "invalid op"; in Parse()
405 TransferList TransferList::Parse(const std::string& transfer_list_str, std::string* err) { in Parse() argument
410 *err = android::base::StringPrintf("too few lines in the transfer list [%zu]", lines.size()); in Parse()
416 *err = "unexpected transfer list version ["s + lines[0] + "]"; in Parse()
422 *err = "unexpected block count ["s + lines[1] + "]"; in Parse()
433 *err = "unexpected maximum stash blocks ["s + lines[3] + "]"; in Parse()
446 *err = android::base::StringPrintf("Failed to parse command %zu [%s]: %s", cmdindex, in Parse()