run_loop 1.1.1.pre5 → 1.1.1.pre6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -161,7 +161,7 @@ var blockingReadScriptPath = "$READ_SCRIPT_PATH";
161
161
  var _expectedIndex = 0,//expected index of next command
162
162
  _actualIndex,//actual index of next command by reading commandPath
163
163
  _index,//index of ':' char in command
164
- _exp,//expression to be eval'ed
164
+ _exp = null,//expression to be eval'ed
165
165
  _result,//result of eval
166
166
  _input,//command
167
167
  _process;//host command process
@@ -302,7 +302,7 @@ while (true) {
302
302
  _actualIndex = parseInt(_input.substring(0, _index), 10);
303
303
  if (!isNaN(_actualIndex) && _actualIndex >= _expectedIndex) {
304
304
  _exp = _input.substring(_index + 1, _input.length);
305
- Log.output("Execute: "+_exp);
305
+ UIALogger.logMessage("Execute command: "+_exp);
306
306
  _result = eval(_exp);
307
307
  }
308
308
  else {//likely old command is lingering...
@@ -315,7 +315,7 @@ while (true) {
315
315
 
316
316
  }
317
317
  catch (err) {
318
- Log.result("error", err.toString() + " " + (err.stack ? err.stack.toString() : ""));
318
+ Log.result("error", "Input: " + (_exp ? _exp.toString() : "null") + ". Error: " + err.toString() + " " + (err.stack ? err.stack.toString() : ""));
319
319
  _expectedIndex++;
320
320
  continue;
321
321
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: run_loop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.pre5
4
+ version: 1.1.1.pre6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow