PLT-7117 Fixed copy paste error in file_actions.jsx (#6928)

Этот коммит содержится в:
Harrison Healey
2017-07-14 13:01:19 -04:00
коммит произвёл GitHub
родитель 5c3c909c85
Коммит 8fb58b1fc9

Просмотреть файл

@@ -6,6 +6,8 @@ import request from 'superagent';
import store from 'stores/redux_store.jsx'; import store from 'stores/redux_store.jsx';
import * as Utils from 'utils/utils.jsx';
import {FileTypes} from 'mattermost-redux/action_types'; import {FileTypes} from 'mattermost-redux/action_types';
import {forceLogoutIfNecessary} from 'mattermost-redux/actions/helpers'; import {forceLogoutIfNecessary} from 'mattermost-redux/actions/helpers';
import {getLogErrorAction} from 'mattermost-redux/actions/errors'; import {getLogErrorAction} from 'mattermost-redux/actions/errors';
@@ -20,9 +22,9 @@ export function uploadFile(file, name, channelId, clientId, successCallback, err
if (res && res.body && res.body.id) { if (res && res.body && res.body.id) {
e = res.body; e = res.body;
} else if (err.status === 0 || !err.status) { } else if (err.status === 0 || !err.status) {
e = {message: this.translations.connectionError}; e = {message: Utils.localizeMessage('channel_loader.connection_error', 'There appears to be a problem with your internet connection.')};
} else { } else {
e = {message: this.translations.unknownError + ' (' + err.status + ')'}; e = {message: Utils.localizeMessage('channel_loader.unknown_error', 'We received an unexpected status code from the server.') + ' (' + err.status + ')'};
} }
forceLogoutIfNecessary(err, dispatch); forceLogoutIfNecessary(err, dispatch);