Potential fixes

This commit is contained in:
boy0001
2015-09-27 16:43:11 +10:00
parent a93e8fac38
commit 3336d302ac
10 changed files with 42 additions and 46 deletions

View File

@ -427,18 +427,19 @@ public class DebugExec extends SubCommand {
@Override
public void run() {
final long start = System.currentTimeMillis();
Object result = null;
try {
engine.eval(toExec, scope);
result = engine.eval(toExec, scope);
} catch (final ScriptException e) {
e.printStackTrace();
}
PS.log("> " + (System.currentTimeMillis() - start) + "ms");
PS.log("> " + (System.currentTimeMillis() - start) + "ms -> " + result);
}
});
} else {
final long start = System.currentTimeMillis();
engine.eval(script, scope);
PS.log("> " + (System.currentTimeMillis() - start) + "ms");
Object result = engine.eval(script, scope);
PS.log("> " + (System.currentTimeMillis() - start) + "ms -> " + result);
}
return true;
} catch (final ScriptException e) {