From 7adfdadc0e4e9a742c7ff2e7bbf2dc4cb71b2559 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Tue, 25 Dec 2007 14:13:18 +0000 Subject: [PATCH] Improve error message on thread creation failure git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25784 72102866-910b-0410-8b05-ffd578937521 --- Source/NSThread.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/NSThread.m b/Source/NSThread.m index 8eb422923..17e0bdc29 100644 --- a/Source/NSThread.m +++ b/Source/NSThread.m @@ -885,7 +885,8 @@ gnustep_base_thread_callback(void) _active = NO; RELEASE(self); [NSException raise: NSInternalInconsistencyException - format: @"Unable to detach thread (unknown error)"]; + format: @"Unable to detach thread (perhaps %@)", + [NSError _last]]; } }