Skip to content

Commit 19ae632

Browse files
Meaningfull error for copy method (#71)
1 parent ef00d74 commit 19ae632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static function copy($src, $dest, $path = null, $useStreams = false)
139139
}
140140

141141
if (!@ copy($src, $dest)) {
142-
throw new FilesystemException(__METHOD__ . ': Copy failed.');
142+
throw new FilesystemException(sprintf('%1$s(%2$s, %3$s): %4$s', __METHOD__, $src, $dest, 'Copy failed'));
143143
}
144144

145145
self::invalidateFileCache($dest);

0 commit comments

Comments
 (0)