fix: fix occurred typo [EE-4536] (#7994)

pull/8017/head
Chaim Lev-Ari 2022-11-08 07:30:37 +02:00 committed by GitHub
parent 193e0c7d6f
commit a0237852ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View File

@ -385,7 +385,7 @@ func (handler *Handler) createEdgeAgentEndpoint(payload *endpointCreatePayload)
err = handler.saveEndpointAndUpdateAuthorizations(endpoint) err = handler.saveEndpointAndUpdateAuthorizations(endpoint)
if err != nil { if err != nil {
return nil, httperror.InternalServerError("An error occured while trying to create the environment", err) return nil, httperror.InternalServerError("An error occurred while trying to create the environment", err)
} }
return endpoint, nil return endpoint, nil
@ -515,7 +515,7 @@ func (handler *Handler) snapshotAndPersistEndpoint(endpoint *portainer.Endpoint)
err = handler.saveEndpointAndUpdateAuthorizations(endpoint) err = handler.saveEndpointAndUpdateAuthorizations(endpoint)
if err != nil { if err != nil {
return httperror.InternalServerError("An error occured while trying to create the environment", err) return httperror.InternalServerError("An error occurred while trying to create the environment", err)
} }
return nil return nil

View File

@ -67,7 +67,7 @@ func (handler *Handler) websocketAttach(w http.ResponseWriter, r *http.Request)
err = handler.handleAttachRequest(w, r, params) err = handler.handleAttachRequest(w, r, params)
if err != nil { if err != nil {
return httperror.InternalServerError("An error occured during websocket attach operation", err) return httperror.InternalServerError("An error occurred during websocket attach operation", err)
} }
return nil return nil

View File

@ -73,7 +73,7 @@ func (handler *Handler) websocketExec(w http.ResponseWriter, r *http.Request) *h
err = handler.handleExecRequest(w, r, params) err = handler.handleExecRequest(w, r, params)
if err != nil { if err != nil {
return httperror.InternalServerError("An error occured during websocket exec operation", err) return httperror.InternalServerError("An error occurred during websocket exec operation", err)
} }
return nil return nil

View File

@ -254,7 +254,7 @@ angular.module('portainer.docker').controller('CreateNetworkController', [
} }
}) })
.catch(function error(err) { .catch(function error(err) {
Notifications.error('Failure', err, 'An error occured during network creation'); Notifications.error('Failure', err, 'An error occurred during network creation');
}) })
.finally(function final() { .finally(function final() {
$scope.state.actionInProgress = false; $scope.state.actionInProgress = false;

View File

@ -140,7 +140,7 @@ angular.module('portainer.docker').controller('CreateVolumeController', [
$state.go('docker.volumes', {}, { reload: true }); $state.go('docker.volumes', {}, { reload: true });
}) })
.catch(function error(err) { .catch(function error(err) {
Notifications.error('Failure', err, 'An error occured during volume creation'); Notifications.error('Failure', err, 'An error occurred during volume creation');
}) })
.finally(function final() { .finally(function final() {
$scope.state.actionInProgress = false; $scope.state.actionInProgress = false;

View File

@ -18,7 +18,7 @@ angular.module('portainer.app').controller('InformationPanelOfflineController',
$state.reload(); $state.reload();
}) })
.catch(function onError(err) { .catch(function onError(err) {
Notifications.error('Failure', err, 'An error occured during environment snapshot'); Notifications.error('Failure', err, 'An error occurred during environment snapshot');
}); });
} }

View File

@ -52,7 +52,7 @@ class LogoutController {
try { try {
await this.logout(); await this.logout();
} catch (err) { } catch (err) {
this.Notifications.error('Failure', err, 'An error occured during logout'); this.Notifications.error('Failure', err, 'An error occurred during logout');
} }
} }