Also check for GPM permissions. Fixes #579

This commit is contained in:
Flavio Copes
2016-01-02 16:25:31 +01:00
parent e3deb40f69
commit 136a9e8218

View File

@@ -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");
}