summaryrefslogtreecommitdiffstats
path: root/lib/private/Remote/Instance.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Remote/Instance.php')
-rw-r--r--lib/private/Remote/Instance.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Remote/Instance.php b/lib/private/Remote/Instance.php
index 3e8f22f4df4..f61fbe202ab 100644
--- a/lib/private/Remote/Instance.php
+++ b/lib/private/Remote/Instance.php
@@ -21,6 +21,7 @@
namespace OC\Remote;
+use OC\Remote\Api\NotFoundException;
use OCP\Http\Client\IClientService;
use OCP\ICache;
@@ -111,6 +112,8 @@ class Instance {
if ($status) {
$this->cache->set($key, $status, 5 * 60);
$this->status = $status;
+ } else {
+ throw new NotFoundException('Remote server not found at address ' . $this->url);
}
}
return $status;