petejkim/specta — pull request #7 by meiwin (2012-04-10 06:27:30+00:00)
Title: sanitize description on exception.

Hi Pete,

This pull-request is to fix EXC_BAD_ACCESS error when exception was raised and the description (from [NSException reason] or from the symbols stack) somehow contains '%@'.

The fix simply sanitize the description by replacing occurrence of '%@' with '?'.

I'm encontering this when testing core data codes where using a lot of %@ in the NSPredicate.

-Meiwin