Skip to content

Commit 573ddf8

Browse files
codeintel: Fail fast on 401 failure in SCIP detection (#1034)
Don't convert SCIP to LSIF, don't attempt to upload the index
1 parent f3a1963 commit 573ddf8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/src/code_intel_upload_flags.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ func isSCIPAvailable() (bool, error) {
202202
return false, err
203203
}
204204
defer resp.Body.Close()
205+
if resp.StatusCode == http.StatusUnauthorized {
206+
return false, upload.ErrUnauthorized
207+
}
205208

206209
return resp.StatusCode == http.StatusOK, nil
207210
}

0 commit comments

Comments
 (0)