Skip to content
Snippets Groups Projects
Commit 0fbb2f82 authored by Michael Davis's avatar Michael Davis
Browse files

[cta_eos] Improves reporting of bad recovery blobs passed to stub

parent 41f8a702
No related branches found
No related tags found
No related merge requests found
......@@ -243,7 +243,11 @@ void fillNotification(cta::eos::Notification &notification, bool &isStderr, bool
}
else if(argstr == "--diskpool") {} // = default?
else if(argstr == "--throughput") {} // = 10000?
else if(argstr == "--recoveryblob:base64") base64Decode(notification, argval);
else if(argstr == "--recoveryblob:base64") try {
base64Decode(notification, argval);
} catch(...) {
throw std::runtime_error("Invalid recovery blob: " + argval);
}
else throw std::runtime_error("Unrecognised key " + argstr);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment