Publish: Add rudimentary error handling when creating new channels
This commit is contained in:
parent
6c68eb5e2b
commit
797f9eafdc
1 changed files with 2 additions and 1 deletions
|
@ -307,7 +307,8 @@ var PublishPage = React.createClass({
|
|||
this._updateChannelList(newChannelName);
|
||||
}, 5000);
|
||||
}, (error) => {
|
||||
// TODO: add error handling
|
||||
// TODO: better error handling
|
||||
this.refs.newChannelName.showAdvice('Unable to create channel due to an internal error.');
|
||||
this.setState({
|
||||
creatingChannel: false,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue