Minor wording change for unauthorized downloads

This commit is contained in:
Djamil Legato
2020-10-28 11:12:51 -07:00
parent d2c861933b
commit 06c66794cc

View File

@@ -1102,7 +1102,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];