diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-09 13:58:13 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-09 14:41:26 +0100 |
commit | bc8632856a1d2588ba8675a768ed6fe700677e55 (patch) | |
tree | b6842bdd2d52ff8f7a3314cb1e20af0610845f21 /apps/federation/tests/middleware | |
parent | d11179a0f5b69ae479c214033a1ffc8d64752c83 (diff) | |
download | nextcloud-server-bc8632856a1d2588ba8675a768ed6fe700677e55.tar.gz nextcloud-server-bc8632856a1d2588ba8675a768ed6fe700677e55.zip |
Forward exception message to the admin in case of errors and in case the remote server version is to low and appropriate message is displayed as well
Diffstat (limited to 'apps/federation/tests/middleware')
-rw-r--r-- | apps/federation/tests/middleware/addservermiddlewaretest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/federation/tests/middleware/addservermiddlewaretest.php b/apps/federation/tests/middleware/addservermiddlewaretest.php index a94d907ae76..49e34cc73d6 100644 --- a/apps/federation/tests/middleware/addservermiddlewaretest.php +++ b/apps/federation/tests/middleware/addservermiddlewaretest.php @@ -27,6 +27,7 @@ use OC\HintException; use OCA\Federation\Middleware\AddServerMiddleware; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; +use OCP\ILogger; use Test\TestCase; class AddServerMiddlewareTest extends TestCase { @@ -93,7 +94,7 @@ class AddServerMiddlewareTest extends TestCase { public function dataTestAfterException() { return [ [new HintException('message', 'hint'), 'message', 'hint'], - [new \Exception('message'), 'message', 'Unknown error'], + [new \Exception('message'), 'message', 'message'], ]; } |