Skip to content

Commit 1426dbe

Browse files
[FrameworkBundle] fix SodiumVault after stof review
1 parent d4b5173 commit 1426dbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Secrets/SodiumVault.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function generateKeys(bool $override = false): bool
5252

5353
try {
5454
$this->loadKeys();
55-
} catch (\LogicException $e) {
55+
} catch (\RuntimeException $e) {
5656
// ignore failures to load keys
5757
}
5858

@@ -186,7 +186,7 @@ private function loadKeys(): void
186186
} elseif ('' !== $this->decryptionKey) {
187187
$this->encryptionKey = sodium_crypto_box_publickey($this->decryptionKey);
188188
} else {
189-
throw new \LogicException(sprintf('Encryption key not found in "%s".', \dirname($this->pathPrefix)));
189+
throw new \RuntimeException(sprintf('Encryption key not found in "%s".', \dirname($this->pathPrefix)));
190190
}
191191
}
192192

0 commit comments

Comments
 (0)