From d1f0c04c3ea3aa9b5a96802a117db6c8a1528b0e Mon Sep 17 00:00:00 2001 From: Gennaro Landolfi Date: Wed, 4 Jun 2025 09:04:37 +0200 Subject: [PATCH] Added file to warning message relative to the copy() call Sometimes some files are considered folders (or are hidden files) and the are unable to be copied on Windows. Showing which causes the exception to be thrown makes easy to investigate on the issue. --- src/Traits/CopiesToBuildDirectory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/CopiesToBuildDirectory.php b/src/Traits/CopiesToBuildDirectory.php index fa8334fb..f3e2f066 100644 --- a/src/Traits/CopiesToBuildDirectory.php +++ b/src/Traits/CopiesToBuildDirectory.php @@ -117,7 +117,7 @@ public function copyToBuildDirectory(): bool } } } catch (Throwable $e) { - warning('[WARNING] '.$e->getMessage()); + warning('[WARNING] '.$e->getMessage().', file: '.$item->getPathname()); } }