Fix decomposition error on Windows
authorTamar Christina <tamar@zhox.com>
Tue, 29 Aug 2017 21:59:38 +0000 (22:59 +0100)
committerTamar Christina <tamar@zhox.com>
Tue, 29 Aug 2017 21:59:38 +0000 (22:59 +0100)
commit3c6b2fc3b5ca11a5410405664e4640767ef941dd
tree0535048a7de1f2bf7d8d4aaa24ea723c927d8c5c
parent895a7650a038131f3043f882c558c627abe9a61e
Fix decomposition error on Windows

Summary:
Fix the path decomposition error that occurs when the Symlink resolver
fails. `Win32.try` throws an exception, so catch it and assume the path
isn't a symlink to use the old behavior.

Test Plan: ./validate

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

GHC Trac Issues: #14159

Differential Revision: https://phabricator.haskell.org/D3891
compiler/main/SysTools.hs