Harden Go CLI subprocess behavior
This commit is contained in:
@@ -26,7 +26,7 @@ var processRunner = func(inv processInvocation, stdout io.Writer) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := coreio.ValidateWellFormedJSON(transcriptBytes); err != nil {
|
||||
if err := coreio.ValidateWellFormedJSON(inv.TranscriptPath, transcriptBytes); err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := coreio.ReadRequiredFile(inv.GlossaryPath, "glossary"); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user