Add warning if file does not exist.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29862 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-03-07 08:10:58 +00:00
parent 949deb4d7a
commit 74104bd46a

View file

@ -191,10 +191,16 @@ main(int argc, char** argv, char **env_c)
} }
} }
else if ([arg hasPrefix: @"/"] == NO else if ([arg hasPrefix: @"/"] == NO
&& (u = [NSURL URLWithString: arg]) != nil) && (u = [NSURL URLWithString: arg]) != nil
&& [u scheme] != nil)
{ {
[workspace openURL: u]; [workspace openURL: u];
} }
else
{
arg = absolutePath(fm, arg);
GSPrintf(stdout, @"The file %@ does not exist.\n", arg);
}
} }
NS_HANDLER NS_HANDLER
{ {