- {
- disp_context = 0; // Get out of this loop.
- output_stream << " An error occurred, and then another error" << std::endl <<
- " occurred in creating a message to describe the first one. " << std::endl <<
- " How embarrassing. It's time to quit before it gets any worse." << std::endl <<
- " For now, the error code itself was 0x" << std::hex << status << std::dec;
- std::cout << "\n -------------------------\n Something wonky happened in displaying status:\n";
- std::cout << " gss_display_status(&disp_minor, " << status << ", " << (int)status_type << ", " << (long int)mech << ", " << disp_context << ", &buf);\n";
- disp_status(disp_major, GSS_C_GSS_CODE, mech, std::cout);
- disp_status(disp_minor, GSS_C_MECH_CODE, mech, std::cout);
- } else
- output_stream << " " << (char *)disp_buf.value << std::endl;
+ throw GSSException("An error occurred while dealing with another error.", disp_major, disp_minor, mech);
+ else
+ disp_status += disp_buf.toString();