From 8e074438f9f3b12621bf853506ee2e56913caaf2 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sun, 31 Jul 2016 14:48:11 +1000 Subject: [PATCH] mythsymlink: print helpful error if symlink fails --- mythsymlink | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mythsymlink b/mythsymlink index a8391ac..c744210 100755 --- a/mythsymlink +++ b/mythsymlink @@ -83,5 +83,8 @@ for row in cursor: if not os.path.isdir(dirname): os.mkdir(dirname) - os.symlink(source, dest) - + try: + os.symlink(source, dest) + except Exception, e: + print e, "--", source, "->", dest + sys.exit(1) -- 2.39.2