Skip to content

Commit

Permalink
updated error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
GytisZum committed Nov 17, 2023
1 parent 6cd745e commit 4cebf96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controllers/admin/AdminSmartsuppAjax.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ public function init()

if ($validator->getError() && $action !== self::DEACTIVATE_ACTION) {
$this->handleError($validator->getMessage(), $validator->getError());
$this->sendResponse();
}


try {
$this->api = new Api();

Expand Down Expand Up @@ -113,7 +111,7 @@ private function updateCredentials()
$this->sendResponse();
}

$this->handleError($this->module->l('Unknown Error Occurred', self::FILE_NAME));
$this->handleError($this->module->l('Unknown error occurred while processing your request.', self::FILE_NAME));
}

private function handleError($message, $error = 'error')
Expand Down

0 comments on commit 4cebf96

Please sign in to comment.