Skip to content

Commit 60a8aa9

Browse files
authored
Show ctags errors with verbose compile (#2017)
ctags can fail, for example if TMPDIR is unset. It aids debugging to show the stderr with -v if that's the case
1 parent b894e12 commit 60a8aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: legacy/builder/ctags_runner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (s *CTagsRunner) Run(ctx *types.Context) error {
5050
command := exec.Command(parts[0], parts[1:]...)
5151
command.Env = append(os.Environ(), ctx.PackageManager.GetEnvVarsForSpawnedProcess()...)
5252

53-
sourceBytes, _, err := utils.ExecCommand(ctx, command, utils.Capture /* stdout */, utils.Ignore /* stderr */)
53+
sourceBytes, _, err := utils.ExecCommand(ctx, command, utils.Capture /* stdout */, utils.ShowIfVerbose /* stderr */)
5454
if err != nil {
5555
return errors.WithStack(err)
5656
}

0 commit comments

Comments
 (0)