mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Improve error msg
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13505 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
85036bf16b
commit
e53ab6db84
1 changed files with 5 additions and 5 deletions
|
@ -121,7 +121,7 @@ static SEL eqSel;
|
|||
_count = i;
|
||||
RELEASE(self);
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"Tried to add nil"];
|
||||
format: @"Tried to add nil to array"];
|
||||
}
|
||||
}
|
||||
_count = count;
|
||||
|
@ -311,7 +311,7 @@ static SEL eqSel;
|
|||
_count = i;
|
||||
RELEASE(self);
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"Tried to add nil"];
|
||||
format: @"Tried to add nil to array"];
|
||||
}
|
||||
}
|
||||
_count = count;
|
||||
|
@ -378,7 +378,7 @@ static SEL eqSel;
|
|||
_count = i;
|
||||
RELEASE(self);
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"Tried to add nil"];
|
||||
format: @"Tried to add nil to array"];
|
||||
}
|
||||
}
|
||||
_count = count;
|
||||
|
@ -393,7 +393,7 @@ static SEL eqSel;
|
|||
if (!anObject)
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"Tried to insert nil"];
|
||||
format: @"Tried to insert nil to array"];
|
||||
}
|
||||
if (index > _count)
|
||||
{
|
||||
|
@ -434,7 +434,7 @@ static SEL eqSel;
|
|||
if (anObject == nil)
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"Tried to add nil"];
|
||||
format: @"Tried to add nil to array"];
|
||||
}
|
||||
if (_count >= _capacity)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue