-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Interesting work. I am also playing around with this idea.
but i have problem when implement try catch on function with return value
i got error
cannot use func literal (type func() revel.Result) as type func(
I am using the try catch within a function that returns value like this, but still got the error:
func (c ToDo) Show(todo int) revel.Result { try.This(func() { panic("my panic") return c.RenderJSON("test") }).Catch(func(e try.E) { // Print crash return c.RenderJSON(e) }) }
is it done in wrong way?
Metadata
Metadata
Assignees
Labels
No labels