convert unnecessary panic to error
Created by: camdencheek
Panic is not needed since this method already returns an error.
https://github.com/sourcegraph/sourcegraph/pull/25091#discussion_r712763316
Created by: camdencheek
Panic is not needed since this method already returns an error.
https://github.com/sourcegraph/sourcegraph/pull/25091#discussion_r712763316