Skip to content

Commit

Permalink
Better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
strangepleasures committed Jul 22, 2020
1 parent 284467f commit c0d8a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/frontend/src/workspaces/Workspaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export default () => {
setSnackbarVisible(true);
setSnackbarMessage("The workspace is being created, this might take a while");
})
.catch(() => {
.catch(e => {
console.error('Error creating a workspace', e);
setSnackbarVisible(true);
setSnackbarMessage("An error occurred while creating your workspace. Please try again later.");
});
Expand Down

0 comments on commit c0d8a7a

Please sign in to comment.