mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 04:45:19 +00:00
wip
This commit is contained in:
parent
3d85a0595c
commit
8ff2d6b4f3
1 changed files with 6 additions and 2 deletions
|
|
@ -22,8 +22,12 @@ export const CodePreviewPanel = async ({ path, repoName, revisionName }: CodePre
|
||||||
getRepoInfoByName(repoName),
|
getRepoInfoByName(repoName),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (isServiceError(fileSourceResponse) || isServiceError(repoInfoResponse)) {
|
if (isServiceError(fileSourceResponse)) {
|
||||||
return <div>Error loading file source</div>
|
return <div>Error loading file source: {fileSourceResponse.message}</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isServiceError(repoInfoResponse)) {
|
||||||
|
return <div>Error loading repo info: {repoInfoResponse.message}</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
const codeHostInfo = getCodeHostInfoForRepo({
|
const codeHostInfo = getCodeHostInfoForRepo({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue