-
How can I catch errors from Given the example below, if I run package foo
import (
"tool/cli"
"tool/exec"
)
command: demo: {
apply: exec.Run & {
cmd: ["ls", "does-not-exist"]
stdout: string
stderr: string
}
result: [
if apply.success {
"success"
},
if !apply.success {
"failed"
},
]
print: cli.Print & {
text: result[0]
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
verdverm
May 22, 2023
Replies: 1 comment 1 reply
-
Open issue and work around: #1499 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sjwl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Open issue and work around: #1499