[][src]Macro glsp::bail

macro_rules! bail {
    ($($arg:tt)*) => { ... };
}

Constructs a GError and returns it.

The arguments to bail! are the same as the arguments to error!. For example, bail!(x) is equivalent to:

return Err(GError::from_val(x))