mirror of
https://github.com/getgrav/grav.git
synced 2026-02-04 05:40:09 +01:00
Also check for GPM permissions. Fixes #579
This commit is contained in:
@@ -327,6 +327,10 @@ class GPM extends Iterator
|
||||
$plugins = $this->getRepositoryPlugins();
|
||||
|
||||
if (!$themes && !$plugins) {
|
||||
if (!is_writable(ROOT_DIR . '/cache/gpm')) {
|
||||
throw new \RuntimeException("The cache/gpm folder is not writable. Please check the folder permissions.");
|
||||
}
|
||||
|
||||
throw new \RuntimeException("GPM not reachable. Please check your internet connection or check the Grav site is reachable");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user