fix invalid tool class on v3/v4

This commit is contained in:
Martin Michelsen
2023-11-21 11:25:25 -08:00
parent 1d8ae0b4d9
commit 267c2ca00b
3 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -404,7 +404,7 @@ pair<uint8_t, uint8_t> ItemParameterTable::find_tool_by_id_t(uint32_t tool_table
}
}
}
throw runtime_error(string_printf("invalid tool class %08" PRIX32, item_id));
throw out_of_range(string_printf("invalid tool class %08" PRIX32, item_id));
}
pair<uint8_t, uint8_t> ItemParameterTable::find_tool_by_id(uint32_t item_id) const {