Fixed file upload and profile picture upload error display to work for serverside errors

This commit is contained in:
hmhealey
2015-10-26 14:15:07 -04:00
parent b46c01b290
commit ff6e91f51d
2 changed files with 9 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ export default class UserSettingsGeneralTab extends React.Component {
}.bind(this),
function imageUploadFailure(err) {
var state = this.setupInitialState(this.props);
state.serverError = err;
state.serverError = err.message;
this.setState(state);
}.bind(this)
);