Author: dpsimons
Date: Wed Jul 29 19:58:03 2015
New Revision: 38847
URL: http://svn.gna.org/viewcvs/gnustep?rev=38847&view=rev
Log:
Fix [NSTask launch] to throw an exception when unable to launch the process, as
per Cocoa
Modified:
libs/base/branches/gnustep_testplant_branch/ChangeLog
libs/base/branches/gnustep_testplant_branch/Source/NSTask.m
Modified: libs/base/branches/gnustep_testplant_branch/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/branches/gnustep_testplant_branch/ChangeLog?rev=38847&r1=38846&r2=38847&view=diff
==============================================================================
--- libs/base/branches/gnustep_testplant_branch/ChangeLog (original)
+++ libs/base/branches/gnustep_testplant_branch/ChangeLog Wed Jul 29
19:58:03 2015
@@ -1,3 +1,8 @@
+2015-07-29 Doug Simons <[email protected]>
+
+ * NSTask.m: Fixed launch method to throw an exception on Windows when it
+ fails to launch the process, as documented and implemented in Cocoa.
+
2015-01-15 Doug Simons <[email protected]>
* NSCalendarDate.m: Fixed init methods to not throw an exception when
Modified: libs/base/branches/gnustep_testplant_branch/Source/NSTask.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/branches/gnustep_testplant_branch/Source/NSTask.m?rev=38847&r1=38846&r2=38847&view=diff
==============================================================================
--- libs/base/branches/gnustep_testplant_branch/Source/NSTask.m (original)
+++ libs/base/branches/gnustep_testplant_branch/Source/NSTask.m Wed Jul 29
19:58:03 2015
@@ -1266,6 +1266,8 @@
if (result == 0)
{
NSLog(@"Error launching task: %@ ... %@", lpath, last);
+ [NSException raise: NSInvalidArgumentException
+ format: @"NSTask - Error launching task: %@ ... %@", lpath,
last];
return;
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs