From 683695eb2baef1f8b6a9b1e88b409960bde0e5b7 Mon Sep 17 00:00:00 2001 From: Elias Probst Date: Thu, 22 Oct 2026 12:09:51 +0200 Subject: [PATCH] snowflake: add path of workDir to exception messages Don't leave the user guessing which directory causes trouble, make it more straightforward to troubleshoot problems when creating/writing to workDir. Signed-off-by: Elias Probst --- lib/private/Snowflake/FileSequence.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Snowflake/FileSequence.php b/lib/private/Snowflake/FileSequence.php index 067bf39134993..53122471ffde1 100644 --- a/lib/private/Snowflake/FileSequence.php +++ b/lib/private/Snowflake/FileSequence.php @@ -50,7 +50,7 @@ public function __construct( private function ensureWorkdirExists(): void { if (is_dir($this->workDir)) { if (!is_writable($this->workDir)) { - throw new \Exception('File sequence directory exists but is not writable'); + throw new \Exception('File sequence directory exists but is not writable at: ' . $this->workDir); } return; } @@ -64,7 +64,7 @@ private function ensureWorkdirExists(): void { return; } - throw new \Exception('Fail to create file sequence directory'); + throw new \Exception('Failed to create file sequence directory at: ' . $this->workDir); } #[Override]