Why does errored() return a false result in sub command?
#3853
Unanswered
static-moonlight
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Hi @static-moonlight I'd need to be able to reproduce this, so please share a self-contained example using a
You should be able to use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I have a structure, like above, with a processor that can fail, within a sub structure, then the check in the same sub structure does not work correctly, because the function
errored()always returnfalseeven when theprocessor_1failed, while it should actually returntrue. The 2ndswitchhowever, back on the root level, works as expected. Here theerrored()check would returntrue.Why is that? Why can't I check for errors while still in a sub structure?
EDIT: And while I'm at it: Can I manually set something (call a function, set a certain metadata value, ...) to make the
errored()function returntrue?Beta Was this translation helpful? Give feedback.
All reactions