mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 10:35:22 -04:00
Improve debugging
This commit is contained in:
parent
cdafb7e27f
commit
a0da5a3120
3 changed files with 38 additions and 19 deletions
|
@ -55,6 +55,8 @@ RsFileTree::fromBase64(const std::string& base64)
|
|||
const auto failure = [](std::error_condition ec)
|
||||
{ return std::make_tuple(nullptr, ec); };
|
||||
|
||||
if(base64.empty()) return failure(std::errc::invalid_argument);
|
||||
|
||||
std::error_condition ec;
|
||||
std::vector<uint8_t> mem;
|
||||
if( (ec = RsBase64::decode(base64, mem)) ) return failure(ec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue