Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
juchiast committed Dec 1, 2023
1 parent c509e03 commit 030213c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
14 changes: 8 additions & 6 deletions crates/cmds-pdg/node-definitions/push_effect_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@
"type": "array",
"defaultValue": "",
"tooltip": ""
},
{
"name": "element",
"type": "object",
"defaultValue": "",
"tooltip": ""
}
],
"targets": [
Expand All @@ -69,6 +63,14 @@
"passthrough": false,
"defaultValue": null,
"tooltip": ""
},
{
"name": "element",
"type_bounds": ["array"],
"required": true,
"passthrough": false,
"defaultValue": null,
"tooltip": ""
}
],
"targets_form.json_schema": {},
Expand Down
12 changes: 11 additions & 1 deletion crates/flow/src/command/interflow.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use anyhow::anyhow;
use crate::{command::prelude::*, flow_registry::FlowRegistry};

pub const INTERFLOW: &str = "interflow";
Expand Down Expand Up @@ -79,7 +80,16 @@ impl CommandTrait for Interflow {
)
.await?;
let result = handle.await?;
Ok(result.output)
if result.flow_errors.is_empty() {
Ok(result.output)
} else {
let mut errors = String::new();
for error in result.flow_errors {
errors += &error;
errors += ";\n";
}
Err(anyhow!(errors))
}
}
}

Expand Down

0 comments on commit 030213c

Please sign in to comment.