npm/bbopx/bbopx.js
function _on_fail(resp, man){
	// See if we got any traction.
	if( ! resp || ! resp.message_type() || ! resp.message() ){
	    // Something dark has happened, try to put something
	    // together.
	    // console.log('bad resp!?: ', resp);
	    var resp_seed = {
		'message_type': 'error',
		'message': 'deep manager error'
	    };
	    resp = new bbopx.barista.response(resp_seed);
	}
	anchor.apply_callbacks('manager_error', [resp, anchor]);
    }
function _on_fail(resp, man){
	// See if we got any traction.
	if( ! resp || ! resp.message_type() || ! resp.message() ){
	    // Something dark has happened, try to put something
	    // together.
	    // console.log('bad resp!?: ', resp);
	    var resp_seed = {
		'message_type': 'error',
		'message': 'deep manager error'
	    };
	    resp = new bbopx.barista.response(resp_seed);
	}
	anchor.apply_callbacks('manager_error', [resp, anchor]);
    }
function _on_fail ( resp , man ) { // See if we got any traction. if ( ! resp || ! resp . message_type ( ) || ! resp . message ( ) ) { // Something dark has happened, try to put something // together. // console.log('bad resp!?: ', resp); var resp_seed = { 'message_type' : 'error' , 'message' : 'deep manager error' } ; resp = new bbopx . barista . response ( resp_seed ) ; } anchor . apply_callbacks ( 'manager_error' , [ resp , anchor ] ) ; }
How to deal with failure.
How to deal with failure .