Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit18f3cf6

Browse files
authored
Merge pull requestcoderoad#241 from coderoad/fix/error-messages
add basic error message for tutorial loading
2 parents60b484c +69ab0db commit18f3cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎web-app/src/containers/SelectTutorial/LoadTutorialSummary.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const LoadTutorialSummary = (props: Props) => {
1313
if(loading){
1414
return<Loadingtext="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)

[8]ページ先頭

©2009-2025 Movatter.jp