lib/errors.js
function locate(fn, location) {
    try {
        return fn();
    } catch (e) {
        if (e instanceof JuttleError && !e.info.location) {
            e.info.location = location;
        }

        throw e;
    }
}
function locate(fn, location) {
    try {
        return fn();
    } catch (e) {
        if (e instanceof JuttleError && !e.info.location) {
            e.info.location = location;
        }

        throw e;
    }
}
function locate ( fn , location ) { try { return fn ( ) ; } catch ( e ) { if ( e instanceof JuttleError && ! e . info . location ) { e . info . location = location ; } throw e ; } }
Adds specified location to any Juttle exception thrown when executing specified function. If the function does not throw any exception, returns its result.
Adds specified location to any Juttle exception thrown when executing specified function . If the function does not throw any exception returns its result .