Log warning if meshms ply failed to open

This commit is contained in:
Jeremy Lakeman 2013-08-26 13:16:18 +09:30
parent f5fa988fcf
commit 42f139215d

View File

@ -221,8 +221,11 @@ static int ply_read_open(struct ply_read *ply, const char *id, rhizome_manifest
DEBUGF("Opening ply %s", id); DEBUGF("Opening ply %s", id);
if (rhizome_retrieve_manifest(id, m)) if (rhizome_retrieve_manifest(id, m))
return -1; return -1;
if (rhizome_open_decrypt_read(m, NULL, &ply->read)) int ret = rhizome_open_decrypt_read(m, NULL, &ply->read);
return -1; if (ret>0)
WARNF("Payload was not found for manifest %s", alloca_tohex_bid(m->cryptoSignPublic));
if (ret)
return ret;
ply->read.offset = ply->read.length = m->fileLength; ply->read.offset = ply->read.length = m->fileLength;
return 0; return 0;
} }