From fb2751faf7027d113e4fa6629a2ffe1e84dc5182 Mon Sep 17 00:00:00 2001 From: Ted Pavlic Date: Tue, 16 Dec 2008 16:00:07 -0500 Subject: [PATCH] Capture exception thrown by normalize on MacOSX. Feel free to revert. I did my best. --- common/content/io.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/content/io.js b/common/content/io.js index 8423e5ff..36bade0e 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -119,7 +119,8 @@ function IO() //{{{ { let path = ioManager.getFile(head); path.appendRelativePath(ioManager.expandPath(tail)); // FIXME: should only expand env vars and normalise path separators - path.normalize(); + try { path.normalize(); } + catch(e) {} return path; }