Skip to content

Commit

Permalink
- Updated correct method names in the exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaykiran committed Sep 14, 2008
1 parent b173c09 commit 2eae537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Foundation/CPString.j
Expand Up @@ -128,7 +128,7 @@ var CPStringHashes = new objj_dictionary();
{
if (!format)
[CPException raise:CPInvalidArgumentException
reason:"stringWithString: the format can't be 'nil'"];
reason:"initWithFormat: the format can't be 'nil'"];

self = sprintf.apply(this, Array.prototype.slice.call(arguments, 2));
return self;
Expand All @@ -143,7 +143,7 @@ var CPStringHashes = new objj_dictionary();
{
if (!format)
[CPException raise:CPInvalidArgumentException
reason:"stringWithString: the format can't be 'nil'"];
reason:"initWithFormat: the format can't be 'nil'"];

return sprintf.apply(this, Array.prototype.slice.call(arguments, 2));
}
Expand Down

0 comments on commit 2eae537

Please sign in to comment.