Changeset 14872 for trunk/FACT++


Ignore:
Timestamp:
02/05/13 16:05:59 (12 years ago)
Author:
tbretz
Message:
Introduce the output of an JS Exception with a pipe to make sure that leading whitespaces are kept.
File:
1 edited

Legend:

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

    r14741 r14872  
    169169    void  JsPrint(const std::string &msg)     { if (fImp) fImp->Comment(msg.empty()?" ":msg); }
    170170    void  JsAlarm(const std::string &msg)     { if (fImp) fImp->Alarm(msg.empty()?" ":msg); }
    171     void  JsException(const std::string &str) { if (fImp) fImp->Error(str.empty()?" ":str); }
     171    void  JsException(const std::string &str) { if (fImp) fImp->Error(str.empty()?" ":('|'+str)); }
    172172    bool  JsHasState(int s) const             { return fImp && fImp->HasState(s); }
    173173    bool  JsHasState(const string &n) const   { return fImp && (fImp->GetStateIndex(n)!=StateMachineImp::kSM_NotAvailable); }
Note: See TracChangeset for help on using the changeset viewer.