In Redux action, log error on failure to create group
This commit is contained in:
parent
1622fdfa4e
commit
2cd29e1b63
1 changed files with 4 additions and 0 deletions
|
@ -748,6 +748,10 @@ function createGroup(): ThunkAction<
|
||||||
switchToAssociatedView: true,
|
switchToAssociatedView: true,
|
||||||
})(dispatch, getState, ...args);
|
})(dispatch, getState, ...args);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
window.log.error(
|
||||||
|
'Failed to create group',
|
||||||
|
err && err.stack ? err.stack : err
|
||||||
|
);
|
||||||
dispatch({ type: 'CREATE_GROUP_REJECTED' });
|
dispatch({ type: 'CREATE_GROUP_REJECTED' });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue