mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-22 22:45:52 +00:00
- Updated correct method names in the exception
This commit is contained in:
1 parent
b173c0978d
commit
2eae5373bc
1 file changed
+2
-2
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user