Skip to content

lsif upload: Make better unauthorized error messages

Warren Gifford requested to merge ef/better-error into main

Created by: efritz

Fixes #727 (closed).

Test plan

Ran by hand:

$ src lsif upload
💡 Inferred arguments
   repo: github.com/sourcegraph/lsif-go
   commit: cde8136abd91c0a3bce9f5d2755bc006a2caaafb
   root:
   file: ./dump.lsif
   indexer: lsif-go
   indexerVersion: dev

✅ Index compressed
💡 Indexed compressed (6.65MB -> 1.06MB).
❌ Failed to upload index file
unauthorized upload

This Sourcegraph instance has enforced auth for LSIF uploads.
BLAH BLAH TEXT CHANGED SINCE I OPENED THE PR
See https://docs.sourcegraph.com/cli/references/lsif/upload.

Merge request reports

Loading