Skip to content

Commit 8ff2d6b

Browse files
wip
1 parent 3d85a05 commit 8ff2d6b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/web/src/app/[domain]/browse/[...path]/components/codePreviewPanel.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ export const CodePreviewPanel = async ({ path, repoName, revisionName }: CodePre
2222
getRepoInfoByName(repoName),
2323
]);
2424

25-
if (isServiceError(fileSourceResponse) || isServiceError(repoInfoResponse)) {
26-
return <div>Error loading file source</div>
25+
if (isServiceError(fileSourceResponse)) {
26+
return <div>Error loading file source: {fileSourceResponse.message}</div>
27+
}
28+
29+
if (isServiceError(repoInfoResponse)) {
30+
return <div>Error loading repo info: {repoInfoResponse.message}</div>
2731
}
2832

2933
const codeHostInfo = getCodeHostInfoForRepo({

0 commit comments

Comments
 (0)