mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
updated to return exception, now that it's in output, not thrown
This commit is contained in:
@ -118,6 +118,11 @@ public class TestScriptProcessStep implements BackendStep
|
||||
runAdHocRecordScriptInput.setCodeReference(new AdHocScriptCodeReference().withScriptRevisionRecord(scriptRevision.toQRecord()));
|
||||
RunAdHocRecordScriptOutput runAdHocRecordScriptOutput = new RunAdHocRecordScriptOutput();
|
||||
new RunAdHocRecordScriptAction().run(runAdHocRecordScriptInput, runAdHocRecordScriptOutput);
|
||||
|
||||
/////////////////////////////////////////////
|
||||
// if there was an exception, send it back //
|
||||
/////////////////////////////////////////////
|
||||
runAdHocRecordScriptOutput.getException().ifPresent(e -> output.addValue("exception", e));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user