From: James Bunton Date: Sun, 31 Jul 2016 04:48:11 +0000 (+1000) Subject: mythsymlink: print helpful error if symlink fails X-Git-Url: https://code.delx.au/mediapc-tools/commitdiff_plain/8e074438f9f3b12621bf853506ee2e56913caaf2 mythsymlink: print helpful error if symlink fails --- 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)