From b0a843cfbe31ff5e29d0c7719056692af8735dee Mon Sep 17 00:00:00 2001 From: Rovanion Luckey Date: Sat, 26 Apr 2014 13:13:31 +0200 Subject: [PATCH] Failing to link a file now throws a FilesystemError. --- beets/util/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beets/util/__init__.py b/beets/util/__init__.py index f7894501eb..072afa9ce1 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -460,11 +460,12 @@ def link(path, dest, replace=False): if os.path.exists(dest) and not replace: raise FilesystemError('file exists', 'rename', (path, dest), traceback.format_exc()) - try: os.symlink(path, dest) except OSError: - print "WAAT!" + raise FilesystemError('Operating system does not support symbolic ' + 'links.', 'link', (path, dest), + traceback.format_exc()) def unique_path(path):