Macro attach_context
Source macro_rules! attach_context {
($error:expr) => { ... };
}
Expand description
Attach a context to a result if it is error
This macro automatically appends file/line info to the traceback
§Arguments
error - The error to attach the context to
msg - The message of the error
§Returns
Result<(), Error> - The result of the safe call