Changeset 11047


Ignore:
Timestamp:
06/16/11 21:54:56 (13 years ago)
Author:
tbretz
Message:
Added output in case of errors when the .s command is enetered.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/LocalControl.h

    r11045 r11047  
    9898
    9999            if (state==-100)
     100            {
     101                lout << kRed << "Couldn't parse state id." << endl;
    100102                return true;
     103            }
    101104
    102105            const Time timeout = Time()+boost::posix_time::millisec(ms);
     
    105108            while (fStateMachine->GetCurrentState()!=target && timeout>Time())
    106109                usleep(1);
     110
    107111            return true;
    108112        }
  • trunk/FACT++/src/RemoteControl.h

    r11045 r11047  
    182182            in >> server >> state >> ms;
    183183            if (state==-100)
     184            {
     185                lout << kRed << "Couldn't parse state id." << endl;
    184186                return true;
     187            }
    185188
    186189            const ClientList::const_iterator l = fClientList.find(server);
    187190            if (l==fClientList.end())
     191            {
     192                lout << kRed << "Server '" << server << "' not found." << endl;
    188193                return true;
     194            }
    189195
    190196            const Time timeout = Time()+boost::posix_time::millisec(ms);
Note: See TracChangeset for help on using the changeset viewer.