diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4e0a029e5..bb5a006fe 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v1.7.11
+## mm/dd/2021
+
+1. [](#improved)
+ * Better GPM detection of unauthorized installations
+
# v1.7.10
## 04/06/2021
diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php
index 202427cff..92c8e07d7 100644
--- a/system/src/Grav/Console/Gpm/InstallCommand.php
+++ b/system/src/Grav/Console/Gpm/InstallCommand.php
@@ -600,7 +600,13 @@ class InstallCommand extends GpmCommand
try {
$output = Response::get($package->zipball_url . $query, [], [$this, 'progress']);
} catch (Exception $e) {
- $error = str_replace("\n", "\n | '- ", $e->getMessage());
+ if (!empty($package->premium) && $e->getCode() === 401) {
+ $message = 'Unauthorized Premium License Key';
+ } else {
+ $message = $e->getMessage();
+ }
+
+ $error = str_replace("\n", "\n | '- ", $message);
$io->write("\x0D");
// extra white spaces to clear out the buffer properly
$io->writeln(' |- Downloading package... error ');