Notify user when project creation failed. (#920)
* Notify user when project creation failed. * Fallback to generic request error message.
This commit is contained in:
Родитель
fff193251d
Коммит
1f7a305d95
|
@ -215,6 +215,11 @@ export default class ProjectSettingsPage extends React.Component<IProjectSetting
|
|||
} else {
|
||||
this.props.history.goBack();
|
||||
}
|
||||
} catch (error) {
|
||||
const message = error?.message
|
||||
? error.message
|
||||
: interpolate(strings.errors.requestSendError.message, {});
|
||||
toast.error(message);
|
||||
} finally {
|
||||
this.setState({ isCommiting: false });
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче