gj::pry! [] [src]

macro_rules! pry {
    ($expr:expr) => { ... };
}

Like try!(), but for functions that return a Promise<T, E> rather than a Result<T, E>.

Unwraps a Result<T, E> and immediately returns with Promise::err() in the error case.