mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 07:10:46 +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
95f7b942b9
commit
8feeb60a36
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
|
||||
&& (u = [NSURL URLWithString: arg]) != nil)
|
||||
&& (u = [NSURL URLWithString: arg]) != nil
|
||||
&& [u scheme] != nil)
|
||||
{
|
||||
[workspace openURL: u];
|
||||
}
|
||||
else
|
||||
{
|
||||
arg = absolutePath(fm, arg);
|
||||
GSPrintf(stdout, @"The file %@ does not exist.\n", arg);
|
||||
}
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue