In Redux action, log error on failure to create group

This commit is contained in:
Evan Hahn 2021-03-10 18:32:13 -06:00 committed by Josh Perez
parent 1622fdfa4e
commit 2cd29e1b63

View file

@ -748,6 +748,10 @@ function createGroup(): ThunkAction<
switchToAssociatedView: true,
})(dispatch, getState, ...args);
} catch (err) {
window.log.error(
'Failed to create group',
err && err.stack ? err.stack : err
);
dispatch({ type: 'CREATE_GROUP_REJECTED' });
}
};