Skip to content

Commit 1c3ff07

Browse files
committed
check err against context.Canceled error
1 parent b7788ec commit 1c3ff07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/packages/packages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) {
787787
Kind: UnknownError,
788788
})
789789

790-
if ld.Context.Err() == nil {
790+
if err != context.Canceled {
791791
// If you see this error message, please file a bug.
792792
log.Printf("internal error: error %q (%T) without position", err, err)
793793
}

0 commit comments

Comments
 (0)