mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 03:40:42 +00:00
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:
parent
949deb4d7a
commit
74104bd46a
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue