Skip to content

Commit 8d0f3fa

Browse files
author
Vikas Agarwal
committed
fix: better error handling
1 parent 859aaee commit 8d0f3fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/actions/challenges.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,10 @@ export function loadChallengeDetails (projectId, challengeId) {
184184
challengeDetails: challenge
185185
})
186186
loadProject(challenge.projectId)(dispatch, getState)
187-
}).catch(() => {
187+
}).catch((error) => {
188188
dispatch({
189-
type: LOAD_CHALLENGE_DETAILS_FAILURE
189+
type: LOAD_CHALLENGE_DETAILS_FAILURE,
190+
error
190191
})
191192
})
192193
} else {

0 commit comments

Comments
 (0)