Skip to content

Provide more information in error message 'No such LSIFUpload'

Created by: varungandhi-src

A customer reported performing an upload and running into an error 'No such LSIFUpload' in the UI. I see a couple of places in the code which emit this error:

client/web/src/enterprise/codeintel/uploads/hooks/queryUploadRetentionMatches.tsx
110:                throw new Error('No such LSIFUpload')

client/web/src/enterprise/codeintel/uploads/hooks/queryLisfUploadFields.tsx
38:                throw new Error('No such LSIFUpload')
  1. It would be helpful to provide more context around what happened here. Was the commit missing? The error wording is confusing, because the user literally just performed an upload. What is the 'such' referring to?
  2. We should probably not use 'LSIFUpload' (as one word) in user-facing stuff.