if ( function_A() == OK ) { if ( function_B() == OK ) { /* Normal completion stuff */ } else { /* some error recovery for Function_B */ } } else { /* some error recovery for Function_A */ }