From 86c48690b043ec016efad5eedfacf022dae8fa16 Mon Sep 17 00:00:00 2001 From: Peter Lobsinger Date: Sat, 7 Aug 2010 16:01:34 -0700 Subject: [PATCH] add notice when winxed path not found --- setup.winxed | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.winxed b/setup.winxed index c990481..fa2c81f 100644 --- a/setup.winxed +++ b/setup.winxed @@ -115,7 +115,12 @@ Get the directory in which winxed lives function get_winxed_dir() { var env = new 'Env'; - return env['WINXED_PATH']; + string path = env['WINXED_PATH']; + if (path == '') + die("Cannot find winxed.\n" + + "Please add $WINXED_PATH to your environment\n" + + "or bug NotFound about making winxed installable.\n"); + return path; }