[PATCH consfigurator v2 1/2] GPG: batch mode and return *ERROR-OUTPUT* in conditions
Russell Sim
rsl at simopolis.xyz
Wed Oct 5 04:48:49 BST 2022
Sean Whitton <spwhitton at spwhitton.name> writes:
> On Tue 04 Oct 2022 at 10:51PM +02, Russell Sim wrote:
>
>> UIOP:RUN-PROGRAM, but will capture any STDOUT/STDERR if no streams are
>> passed in. Handle the SUBPROCESS-ERROR and convert it to a RUN-FAILED
>> condition for all cases. There is only one function
>> TRY-GET-FILE-MIME-TYPE that deals directly with the SUBPROCESS-ERROR
>> condition so I can update it to handle RUN-FAILED. There will probably
>> be a few places then where we need to explicitly pass in *ERROR-OUTPUT*
>> or *STANDARD-OUTPUT* rather than that being the default output location?
>
> Not sure what you mean about *{STANDARD,ERROR}-OUTPUT*.
Sometimes you want io to go to stderr/stdout, rather than being
captured in a condition.
>> (or perhaps call the UIOP:RUN-PROGRAM directly) Does this make sense?
>> then we can expose RUN-PROGRAM to other packages to consume, giving them
>> all the same behaviour.
>
> Yes, makes sense to me. The benefit is basically just better error
> messages for data sources, right? I wouldn't want to extend this
> outside of data sources for the time being.
OK
More information about the sgo-software-discuss
mailing list