Improve cdc_fuse_fs and path (#2)

Improve cdc_fuse_fs and path

Improves the error handling in path so that std:error_codes are not
assumed to be of system category, and also that their messages are
displayed. Also improves debug messages in GameletComponent.
This commit is contained in:
ljusten
2022-11-15 12:53:02 +01:00
committed by GitHub
parent 9fdccb3548
commit 23fcd5ef1d
9 changed files with 70 additions and 65 deletions

View File

@@ -78,7 +78,7 @@ bool ContentId::FromHexString(const std::string& str,
std::string* hash = content_id->mutable_blake3_sum_160();
hash->clear();
hash->reserve(kHashSize);
for (int n = 0; n < str.size(); n += 2) {
for (size_t n = 0; n < str.size(); n += 2) {
int high = HexToInt(str[n]);
int low = HexToInt(str[n + 1]);
if (high == -1 || low == -1) {