nst / STHTTPRequest

Obj-C / Cocoa HTTP requests for humans
BSD 3-Clause "New" or "Revised" License
825 stars 82 forks source link

Crashes with nil error block #27

Closed jasperblues closed 9 years ago

jasperblues commented 10 years ago

If the error block is nil, then a crash occurs (in the event of an error).

This is probably correct, but perhaps there could be a default logging error block - logs a warning to the console.

nst commented 9 years ago

I chose not to implement a default error block, but try to make the developer aware of his possible mistake by asserting the existence of the completion and error block as early as possible.