summaryrefslogtreecommitdiffstats
path: root/lib/private/encryption/manager.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-01 16:36:08 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:30 +0200
commit664b2bb7af2c8253aa0bbade42531ad4a3ef6bab (patch)
tree1f6da0f4a10dbc9345a8dd1716986c16c237f3d9 /lib/private/encryption/manager.php
parentc9d6ed3d7d04412b721745f61402ff1400c59aeb (diff)
downloadnextcloud-server-664b2bb7af2c8253aa0bbade42531ad4a3ef6bab.tar.gz
nextcloud-server-664b2bb7af2c8253aa0bbade42531ad4a3ef6bab.zip
cleaning up exception mess
Diffstat (limited to 'lib/private/encryption/manager.php')
-rw-r--r--lib/private/encryption/manager.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/encryption/manager.php b/lib/private/encryption/manager.php
index 77f02b0c489..f8ac174479e 100644
--- a/lib/private/encryption/manager.php
+++ b/lib/private/encryption/manager.php
@@ -70,8 +70,7 @@ class Manager implements \OCP\Encryption\IManager {
$name = $module->getDisplayName();
if (isset($this->encryptionModules[$id])) {
- $message = 'Id "' . $id . '" already used by encryption module "' . $name . '"';
- throw new Exceptions\ModuleAlreadyExistsException($message);
+ throw new Exceptions\ModuleAlreadyExistsException($id, $name);
}
$defaultEncryptionModuleId = $this->getDefaultEncryptionModuleId();