refactor(sterni/blërg): make caller of Run responsible for stderr
We can use ! in R to display the error instead. Change-Id: Ib7f6e559014e3f99a9f99c159a31a45a7a0e65a5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/13105 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
dfd8210e99
commit
78af9a2306
1 changed files with 2 additions and 3 deletions
|
|
@ -28,11 +28,10 @@ Run ← {
|
||||||
𝕊 𝕩: 1 𝕊 𝕩;
|
𝕊 𝕩: 1 𝕊 𝕩;
|
||||||
doChomp 𝕊 cmd:
|
doChomp 𝕊 cmd:
|
||||||
exit‿stdout‿stderr ← •SH cmd
|
exit‿stdout‿stderr ← •SH cmd
|
||||||
•term.ErrRaw⍟(0≠exit) stderr
|
exit∾Chomp⍟doChomp¨ stdout‿stderr
|
||||||
⟨Chomp⍟doChomp stdout, exit⟩
|
|
||||||
}
|
}
|
||||||
|
|
||||||
R ← {𝕊 stdout‿exit: !0=exit ⋄ stdout}∘Run
|
R ← {𝕊 exit‿stdout‿stderr: stderr!0=exit ⋄ stdout}∘Run
|
||||||
LR ← Lines∘R
|
LR ← Lines∘R
|
||||||
|
|
||||||
# (Apple) Mail Notes Backend
|
# (Apple) Mail Notes Backend
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue