Fix key store path in exception message

This commit is contained in:
Niklas Keller
2018-01-11 16:53:01 +01:00
parent ed3da3c98d
commit 19f6550e33

View File

@@ -44,7 +44,7 @@ class KeyStore {
$dir = \dirname($file);
if (!(yield File\isdir($dir)) && !(yield File\mkdir($dir, 0644, true)) && !(yield File\isdir($dir))) {
throw new FilesystemException("Couldn't create key directory: '{$path}'");
throw new FilesystemException("Couldn't create key directory: '{$dir}'");
}
yield File\put($file, $key->toPem());