Skip to content

Commit dc346d8

Browse files
authored
Added file to warning message relative to the copy() call (#223)
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.
1 parent dbe9fd8 commit dc346d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/CopiesToBuildDirectory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function copyToBuildDirectory(): bool
117117
}
118118
}
119119
} catch (Throwable $e) {
120-
warning('[WARNING] '.$e->getMessage());
120+
warning('[WARNING] '.$e->getMessage().', file: '.$item->getPathname());
121121
}
122122
}
123123

0 commit comments

Comments
 (0)