{"action":"created","issue":{"url":"https://api.github.com/repos/mattgallagher/CwlPreconditionTesting/issues/1","repository_url":"https://api.github.com/repos/mattgallagher/CwlPreconditionTesting","labels_url":"https://api.github.com/repos/mattgallagher/CwlPreconditionTesting/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mattgallagher/CwlPreconditionTesting/issues/1/comments","events_url":"https://api.github.com/repos/mattgallagher/CwlPreconditionTesting/issues/1/events","html_url":"https://github.com/mattgallagher/CwlPreconditionTesting/issues/1","id":131459614,"number":1,"title":"Add the assertion message to returned exception","user":{"login":"abbeycode","id":1349578,"avatar_url":"https://avatars.githubusercontent.com/u/1349578?v=3","gravatar_id":"","url":"https://api.github.com/users/abbeycode","html_url":"https://github.com/abbeycode","followers_url":"https://api.github.com/users/abbeycode/followers","following_url":"https://api.github.com/users/abbeycode/following{/other_user}","gists_url":"https://api.github.com/users/abbeycode/gists{/gist_id}","starred_url":"https://api.github.com/users/abbeycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abbeycode/subscriptions","organizations_url":"https://api.github.com/users/abbeycode/orgs","repos_url":"https://api.github.com/users/abbeycode/repos","events_url":"https://api.github.com/users/abbeycode/events{/privacy}","received_events_url":"https://api.github.com/users/abbeycode/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-04T20:06:20Z","updated_at":"2016-02-07T03:50:08Z","closed_at":"2016-02-07T03:50:08Z","body":"Is there a way to retrieve the message from the assertion failure, in order to validate it? I can't see it on the returned `NSException`. It would be great if it were available in the exception's `userInfo` or `reason` property."},"comment":{"url":"https://api.github.com/repos/mattgallagher/CwlPreconditionTesting/issues/comments/180941011","html_url":"https://github.com/mattgallagher/CwlPreconditionTesting/issues/1#issuecomment-180941011","issue_url":"https://api.github.com/repos/mattgallagher/CwlPreconditionTesting/issues/1","id":180941011,"user":{"login":"mattgallagher","id":28080,"avatar_url":"https://avatars.githubusercontent.com/u/28080?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgallagher","html_url":"https://github.com/mattgallagher","followers_url":"https://api.github.com/users/mattgallagher/followers","following_url":"https://api.github.com/users/mattgallagher/following{/other_user}","gists_url":"https://api.github.com/users/mattgallagher/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgallagher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgallagher/subscriptions","organizations_url":"https://api.github.com/users/mattgallagher/orgs","repos_url":"https://api.github.com/users/mattgallagher/repos","events_url":"https://api.github.com/users/mattgallagher/events{/privacy}","received_events_url":"https://api.github.com/users/mattgallagher/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T03:50:08Z","updated_at":"2016-02-07T03:50:08Z","body":"I've had a look at this. In Debug (-Onone), it *is* possible to walk through the stack frames to the `message` parameter passed to the underlying `_assertionFailure` function. It involves making some dirty assumptions about how many stack frames and the location within the stack frame but you can do it.\r\n\r\nIn Release build, it is *not* possible. The entire `precondition` (or other test function) is inlined into the caller and the `message` parameter is gone from the stack before the `ud2` occurs."}}