Skip to main content

rel_path_if_supported

Macro rel_path_if_supported 

Source
macro_rules! rel_path_if_supported {
    ($res:expr, $ret:expr) => { ... };
}
Expand description

Extract the key path (relative to the keystore root) from the specified result res, or return an error.

If the underlying error is ArtiPathUnavailable (i.e. the KeySpecifier cannot provide an ArtiPath), return ret.