]> source.dussan.org Git - nextcloud-server.git/commitdiff
add more descriptive message to the exception, will be displayed to the user
authorBjoern Schiessle <schiessle@owncloud.com>
Wed, 1 Apr 2015 15:46:33 +0000 (17:46 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Apr 2015 11:30:30 +0000 (13:30 +0200)
apps/encryption/lib/session.php

index 82c7829ecbd83820e950fd24dbd62cc1abd49509..e705611fa6e51b992d54ded5254306eff0567376 100644 (file)
@@ -70,7 +70,7 @@ class Session {
        public function getPrivateKey() {
                $key = $this->session->get('privateKey');
                if (is_null($key)) {
-                       throw new Exceptions\PrivateKeyMissingException('no private key stored in session', 0);
+                       throw new Exceptions\PrivateKeyMissingException('please try to log-out and log-in again', 0);
                }
                return $key;
        }