Skip to content

Commit

Permalink
add notice when winxed path not found
Browse files Browse the repository at this point in the history
  • Loading branch information
plobsing committed Aug 7, 2010
1 parent fc65b78 commit 86c4869
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.winxed
Expand Up @@ -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;
}


Expand Down

0 comments on commit 86c4869

Please sign in to comment.