summaryrefslogtreecommitdiffstats
path: root/lib/private/Remote/Instance.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-09-27 17:46:24 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-12-08 16:34:33 +0100
commit74b5ce8fd4311f0d6f6a59e0636d343807b79d74 (patch)
tree30e2a3f407b94909080aaa7d536c9fe13d8cc731 /lib/private/Remote/Instance.php
parentac2c26ffcbe63e64156fc7e0b0be4e3466430dcf (diff)
downloadnextcloud-server-74b5ce8fd4311f0d6f6a59e0636d343807b79d74.tar.gz
nextcloud-server-74b5ce8fd4311f0d6f6a59e0636d343807b79d74.zip
Some tests for the remote cloud api
Signed-off-by: Robin Appelman <robin@icewind.nl>
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;