From 08933c2b0a182d417a42f940393e1589a1c6c829 Mon Sep 17 00:00:00 2001 From: Bouke van der Bijl <i@bou.ke> Date: Wed, 21 Dec 2022 13:39:13 +0100 Subject: [PATCH] Show ctags output when verbose ctags can fail, for example if TMPDIR is unset. It aids debugging to show the stderr with -v if that's the case --- legacy/builder/ctags_runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/builder/ctags_runner.go b/legacy/builder/ctags_runner.go index 22364f876d3..64a6c9f5e24 100644 --- a/legacy/builder/ctags_runner.go +++ b/legacy/builder/ctags_runner.go @@ -50,7 +50,7 @@ func (s *CTagsRunner) Run(ctx *types.Context) error { command := exec.Command(parts[0], parts[1:]...) command.Env = append(os.Environ(), ctx.PackageManager.GetEnvVarsForSpawnedProcess()...) - sourceBytes, _, err := utils.ExecCommand(ctx, command, utils.Capture /* stdout */, utils.Ignore /* stderr */) + sourceBytes, _, err := utils.ExecCommand(ctx, command, utils.Capture /* stdout */, utils.ShowIfVerbose /* stderr */) if err != nil { return errors.WithStack(err) }