mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-22 02:06:42 +00:00
Log error in "rhizome extract" if payload fails
This commit is contained in:
parent
f5b757c022
commit
9b1ad664e9
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user