@@ -684,12 +684,11 @@ if (fmt == nil) @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; if ((len = of_vasprintf(&t, [fmt cString], args)) == -1) - @throw [OFInvalidArgumentException newWithClass: isa - selector: _cmd]; + @throw [OFInvalidFormatException newWithClass: isa]; @try { return [self writeNBytes: len fromBuffer: t]; } @finally {