Minor wording change for unauthorized downloads

This commit is contained in:
Djamil Legato
2020-10-28 11:11:09 -07:00
parent 81f8fa8af0
commit 4e45a22837

View File

@@ -1053,7 +1053,7 @@ class AdminController extends AdminBaseController
$result = Gpm::install($package, ['theme' => $type === 'theme']);
} catch (\Exception $e) {
$msg = $e->getMessage();
$msg = Utils::contains($msg, '401 Unauthorized') ? "ERROR: Authorization failed for this resource" : $msg;
$msg = Utils::contains($msg, '401 Unauthorized') ? "ERROR: License key for this resource is invalid." : $msg;
$msg = Utils::contains($msg, '404 Not Found') ? "ERROR: Resource not found" : $msg;
$this->admin->json_response = ['status' => 'error', 'message' => $msg];