@@ -962,15 +962,14 @@ struct ScannerImpl {
962
962
// todo: currently, if the scan fails then we don't update the item
963
963
// so it never gets saved in failed state
964
964
// and so if it's up to date then it must've succeeded last time
965
- // but maybe we should should save the errors ?
965
+ // but maybe we should save the errors ?
966
966
bool success = (item_ood[idx] == ood_state::up_to_date || got_result[idx]);
967
967
ret.push_back ({ item_ood[idx],
968
968
success ? scan_state::success : scan_state::failed });
969
969
}
970
970
return ret;
971
971
}
972
972
973
- // note: all of the input paths are required to be normalized already
974
973
auto scan (Scanner::Type tool_type, std::string_view tool_path,
975
974
std::string_view db_path, std::string_view int_dir, std::string_view item_root_path,
976
975
bool commands_contain_item_path, span_map<cmd_idx_t , std::string_view> commands,
@@ -1123,7 +1122,7 @@ vector_map<scan_item_idx_t, Scanner::Result> Scanner::scan(const ConfigView & cc
1123
1122
throw std::invalid_argument (fmt::format (" target_idx {} for {} is out of range [0..{}-1]" ,
1124
1123
(uint32_t )item.target_idx , item.path , (uint32_t )c.item_set .targets .size ()));
1125
1124
if (item.command_idx >= c.item_set .commands .size ())
1126
- throw std::invalid_argument (fmt::format (" target_idx {} for {} is out of range [0..{}-1]" ,
1125
+ throw std::invalid_argument (fmt::format (" command_idx {} for {} is out of range [0..{}-1]" ,
1127
1126
(uint32_t )item.command_idx , item.path , (uint32_t )c.item_set .commands .size ()));
1128
1127
}
1129
1128
0 commit comments