- Updated correct method names in the exception

This commit is contained in:
vijaykiran committed 2008-09-14 10:51:59 +02:00
1 parent b173c0978d
commit 2eae5373bc
1 file changed
+2 -2
+2 -2
View File
@@ -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;
@@ -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));
}