From 19f6550e3316c2e628d3035c45a62f98eba2d970 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Thu, 11 Jan 2018 16:53:01 +0100 Subject: [PATCH] Fix key store path in exception message --- src/Stores/KeyStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stores/KeyStore.php b/src/Stores/KeyStore.php index 83da2a1..e66ed5d 100644 --- a/src/Stores/KeyStore.php +++ b/src/Stores/KeyStore.php @@ -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());