Skip to content

Commit 18f3cf6

Browse files
authored
Merge pull request #241 from coderoad/fix/error-messages
add basic error message for tutorial loading
2 parents 60b484c + 69ab0db commit 18f3cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: web-app/src/containers/SelectTutorial/LoadTutorialSummary.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const LoadTutorialSummary = (props: Props) => {
1313
if (loading) {
1414
return <Loading text="Loading tutorial summary..." />
1515
}
16-
// TODO: improve error handling
1716
if (error) {
18-
return <div>{JSON.stringify(error)}</div>
17+
console.log(error)
18+
return <div>Error loading summary</div>
1919
}
2020
if (!data) {
2121
return <div>No data returned for tutorial</div>

0 commit comments

Comments
 (0)