Log error in "rhizome extract" if payload fails

This commit is contained in:
Andrew Bettison 2013-12-18 17:39:10 +10:30
parent f5b757c022
commit 9b1ad664e9

View File

@ -1780,10 +1780,14 @@ int app_rhizome_extract(const struct cli_parsed *parsed, struct cli_context *con
if (extract){
// Save the file, implicitly decrypting if required.
retfile = rhizome_extract_file(m, filepath);
if (retfile)
WHYF("rhizome_extract_file() returned %d", retfile);
}else{
// Save the file without attempting to decrypt
uint64_t length;
retfile = rhizome_dump_file(&m->filehash, filepath, &length);
if (retfile)
WHYF("rhizome_dump_file() returned %d", retfile);
}
}