src/nodes/src/controller.cpp
// Prints the failure message to the console
Prints the failure message to the console
Prints the failure message to the console
void Controller::printFailure(std::string message) {
        mUserIO->publishData("[FAILURE] " + message);
        if(mSpawned) {
            printWaiting("System is shutting down...\n");
            mEnvironment->publishData("delete");
        } else {
            printSuccess("System has shut down!\n\n");
            exit(0);
        }
    }
void Controller :: printFailure ( std :: string message ) { mUserIO -> publishData ( " " + message ) ; if ( mSpawned ) { printWaiting ( " \n " ) ; mEnvironment -> publishData ( " " ) ; } else { printSuccess ( " \n \n " ) ; exit ( 0 ) ; } }
Prints the failure message to the console
Prints the failure message to the console