How would I get the message in the "Failure" using a for comprehension.
In my first post - userAllowed functions does some checking, and has
for ( extracted <- SomeValue ?~ "param failure error message" # instead of
On Friday, October 12, 2012 10:09:19 AM UTC+1, maarten wrote:
> This returns "extracted" wrapped in a Box[SomeType] assuming that
> for ( extracted <- SomeValue ?~ "param failure error message" ~> 401)
> Of course you can add processing logic in the yield using a helper
> Does this help?
> On Friday, October 12, 2012, Naftoli Gugenheim wrote:
>> On Mon, Oct 8, 2012 at 5:49 PM, David Pollak <
>>> Please do not use pattern matching, please use for comprehensions.
>> Why? And, how do you handle the Failure case?
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.