Skip to content

Commit 19403a4

Browse files
alingsecuematthew
authored andcommitted
internal/golangorgx/gopls: Use the correct error.
This was found using the author's https://github.com/alingse/nilnesserr tool. Although this is vendored code, I think this code is something we might make use of, and so it's worthwhile having this fix. Closes #3863 as merged as of commit a45c605. Signed-off-by: alingse <[email protected]> Change-Id: Id31a252ce9807877eed34a6947ca51894469f1c5 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1213489 Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Matthew Sackman <[email protected]>
1 parent 34a512f commit 19403a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/golangorgx/gopls/lsprpc/lsprpc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ func (f *forwarder) replyWithDebugAddress(outerCtx context.Context, r jsonrpc2.R
392392
addr, err = di.Serve(outerCtx, addr)
393393
if err != nil {
394394
event.Error(outerCtx, "starting debug server", err)
395-
return r(ctx, result, outerErr)
395+
return r(ctx, result, err)
396396
}
397397
urls := []string{"http://" + addr}
398398
modified.URLs = append(urls, modified.URLs...)

0 commit comments

Comments
 (0)