Skip to content

Commit

Permalink
Use OS mv utility on Linux systems. Fixes symfony#12533. Fixed except…
Browse files Browse the repository at this point in the history
…ion type.
  • Loading branch information
RoSk0 committed Nov 26, 2014
1 parent 0f37c57 commit 9bc4087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function rename($origin, $target, $overwrite = false)
else {
exec('mv ' . escapeshellarg($origin) . ' ' . escapeshellarg($target), $output, $returnCode);
if (0 !== $returnCode) {
throw new \RuntimeException(sprintf('Could not rename "%s" to "%s".', $origin, $target));
throw new IOException(sprintf('Cannot rename "%s" to "%s".', $origin, $target), 0, null, $target);
}
}
}
Expand Down

0 comments on commit 9bc4087

Please sign in to comment.