symfony/symfony — pull request #4577 by ErikTrapman (2012-06-14 08:37:13+00:00)
Title: [FileSystem] verbose error when failing to create symlink in windows due to no administrator-rights

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes

This PR aims to tell a windows-user about the most common pitfall when the creation of a symlink fails: lack of administrator-rights. IMO a valuable addition as this is the first and biggest problem all windows-users face working with symlinks.
This PR clarifies the possible problem by reading the windows-error-code and tells what's most likely causing the failure.