Changeset 18839 for trunk/FACT++/src


Ignore:
Timestamp:
04/19/17 14:47:20 (8 years ago)
Author:
tbretz
Message:
Output which is the current state if dim.wait times out.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/InterpreterV8.cc

    r18833 r18839  
    377377    if (timeout)
    378378        code +=       "var t = new Date();";
    379     code +=           "while (1)"
     379    code +=           "var s;"
     380                      "while (1)"
    380381                      "{"
    381                          "var s = dim.state(name);"
     382                         "s = dim.state(name);"
    382383                         "if(!s)throw new Error('Waiting for state "+arg1+" of server "+arg0+" failed.');";
    383384    if (isNot)
     
    393394                      "}";
    394395    if (timeout)
    395         code +=    "if(ms>0)throw new Error('Waiting for state "+arg1+" of server "+arg0+" timed out.');";
    396     code +=        "return false;"
     396        code +=       "if(ms>0)throw new Error('Waiting for state "+arg1+" of server "+arg0+" ['+"+index+"+'] timed out.');";
     397    code +=           "return false;"
    397398                   "})('"+name+"',"+arg1;
    398399    if (timeout)
Note: See TracChangeset for help on using the changeset viewer.