mirror of https://github.com/portainer/portainer
fix: fix occurred typo [EE-4536] (#7994)
parent
193e0c7d6f
commit
a0237852ef
|
@ -385,7 +385,7 @@ func (handler *Handler) createEdgeAgentEndpoint(payload *endpointCreatePayload)
|
|||
|
||||
err = handler.saveEndpointAndUpdateAuthorizations(endpoint)
|
||||
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
|
||||
|
@ -515,7 +515,7 @@ func (handler *Handler) snapshotAndPersistEndpoint(endpoint *portainer.Endpoint)
|
|||
|
||||
err = handler.saveEndpointAndUpdateAuthorizations(endpoint)
|
||||
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
|
||||
|
|
|
@ -67,7 +67,7 @@ func (handler *Handler) websocketAttach(w http.ResponseWriter, r *http.Request)
|
|||
|
||||
err = handler.handleAttachRequest(w, r, params)
|
||||
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
|
||||
|
|
|
@ -73,7 +73,7 @@ func (handler *Handler) websocketExec(w http.ResponseWriter, r *http.Request) *h
|
|||
|
||||
err = handler.handleExecRequest(w, r, params)
|
||||
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
|
||||
|
|
|
@ -254,7 +254,7 @@ angular.module('portainer.docker').controller('CreateNetworkController', [
|
|||
}
|
||||
})
|
||||
.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() {
|
||||
$scope.state.actionInProgress = false;
|
||||
|
|
|
@ -140,7 +140,7 @@ angular.module('portainer.docker').controller('CreateVolumeController', [
|
|||
$state.go('docker.volumes', {}, { reload: true });
|
||||
})
|
||||
.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() {
|
||||
$scope.state.actionInProgress = false;
|
||||
|
|
|
@ -18,7 +18,7 @@ angular.module('portainer.app').controller('InformationPanelOfflineController',
|
|||
$state.reload();
|
||||
})
|
||||
.catch(function onError(err) {
|
||||
Notifications.error('Failure', err, 'An error occured during environment snapshot');
|
||||
Notifications.error('Failure', err, 'An error occurred during environment snapshot');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ class LogoutController {
|
|||
try {
|
||||
await this.logout();
|
||||
} catch (err) {
|
||||
this.Notifications.error('Failure', err, 'An error occured during logout');
|
||||
this.Notifications.error('Failure', err, 'An error occurred during logout');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue