mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Log malformed UUID incase of error
This is instead of showing “no valid UUID” (which could mean either missing or malformed).
This commit is contained in:
@@ -56,7 +56,10 @@ std::pair<std::vector<bundles::item_ptr>, std::map< oak::uuid_t, std::vector<oak
|
||||
plist::dictionary_t plist = cache.content(infoPlistPath);
|
||||
if(!plist::get_key_path(plist, bundles::kFieldUUID, bundleUUID))
|
||||
{
|
||||
fprintf(stderr, "*** skip ‘%s’ (no valid UUID)\n", infoPlistPath.c_str());
|
||||
std::string uuidStr;
|
||||
if(plist::get_key_path(plist, bundles::kFieldUUID, uuidStr))
|
||||
fprintf(stderr, "*** skip ‘%s’, invalid UUID ‘%s’\n", infoPlistPath.c_str(), uuidStr.c_str());
|
||||
else fprintf(stderr, "*** skip ‘%s’, no UUID\n", infoPlistPath.c_str());
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -164,7 +167,10 @@ std::pair<std::vector<bundles::item_ptr>, std::map< oak::uuid_t, std::vector<oak
|
||||
plist::dictionary_t plist = cache.content(itemPath);
|
||||
if(!plist::get_key_path(plist, bundles::kFieldUUID, uuid))
|
||||
{
|
||||
fprintf(stderr, "*** skip ‘%s’ (no valid UUID)\n", itemPath.c_str());
|
||||
std::string uuidStr;
|
||||
if(plist::get_key_path(plist, bundles::kFieldUUID, uuidStr))
|
||||
fprintf(stderr, "*** skip ‘%s’, invalid UUID ‘%s’\n", itemPath.c_str(), uuidStr.c_str());
|
||||
else fprintf(stderr, "*** skip ‘%s’, no UUID\n", itemPath.c_str());
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user