Skip to content

Commit 61dae1e

Browse files
feedback
1 parent 2142512 commit 61dae1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/features/search/fileSourceApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const getFileSource = async ({ path: filePath, repo: repoName, ref }: Fil
3232
if (errorMessage.includes('does not exist') || errorMessage.includes('fatal: path')) {
3333
return fileNotFound(filePath, repoName);
3434
}
35-
if (errorMessage.includes('unknown revision') || errorMessage.includes('bad revision')) {
35+
if (errorMessage.includes('unknown revision') || errorMessage.includes('bad revision') || errorMessage.includes('invalid object name')) {
3636
return unexpectedError(`Invalid git reference: ${gitRef}`);
3737
}
3838
throw error;

0 commit comments

Comments
 (0)