fixed review notes

This commit is contained in:
Sebastian Sdorra
2018-08-07 15:08:44 +02:00
parent 839eb8d618
commit 7bf76a91f5
5 changed files with 20 additions and 27 deletions

View File

@@ -38,7 +38,10 @@ function fetchRepositoryTypes(dispatch: any) {
dispatch(fetchRepositoryTypesSuccess(repositoryTypes));
})
.catch(err => {
dispatch(fetchRepositoryTypesFailure(err));
const error = new Error(
`failed to fetch repository types: ${err.message}`
);
dispatch(fetchRepositoryTypesFailure(error));
});
}